mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 14:27:42 -02:30
Fix container group OPTIONS request
This commit is contained in:
@@ -97,6 +97,7 @@ from awx.main.utils import (
|
|||||||
deepmerge,
|
deepmerge,
|
||||||
parse_yaml_or_json,
|
parse_yaml_or_json,
|
||||||
)
|
)
|
||||||
|
from awx.main.utils.execution_environments import get_execution_environment_default
|
||||||
from awx.main.utils.ansible import read_ansible_config
|
from awx.main.utils.ansible import read_ansible_config
|
||||||
from awx.main.utils.external_logging import reconfigure_rsyslog
|
from awx.main.utils.external_logging import reconfigure_rsyslog
|
||||||
from awx.main.utils.safe_yaml import safe_dump, sanitize_jinja
|
from awx.main.utils.safe_yaml import safe_dump, sanitize_jinja
|
||||||
@@ -3126,7 +3127,10 @@ class AWXReceptorJob:
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def pod_definition(self):
|
def pod_definition(self):
|
||||||
ee = self.task.instance.resolve_execution_environment()
|
if self.task:
|
||||||
|
ee = self.task.instance.resolve_execution_environment()
|
||||||
|
else:
|
||||||
|
ee = get_execution_environment_default()
|
||||||
|
|
||||||
default_pod_spec = {
|
default_pod_spec = {
|
||||||
"apiVersion": "v1",
|
"apiVersion": "v1",
|
||||||
|
|||||||
Reference in New Issue
Block a user