mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 03:47:36 -02:30
Provide new default pod defintion in CG metadata (#9181)
This commit is contained in:
@@ -3029,12 +3029,12 @@ def deep_copy_model_obj(
|
||||
|
||||
|
||||
class AWXReceptorJob:
|
||||
def __init__(self, task, runner_params):
|
||||
def __init__(self, task=None, runner_params=None):
|
||||
self.task = task
|
||||
self.runner_params = runner_params
|
||||
self.unit_id = None
|
||||
|
||||
if not self.task.instance.is_container_group_task:
|
||||
if self.task and not self.task.instance.is_container_group_task:
|
||||
execution_environment_params = self.task.build_execution_environment_params(self.task.instance)
|
||||
self.runner_params['settings'].update(execution_environment_params)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user