mirror of
https://github.com/ansible/awx.git
synced 2026-02-17 11:10:03 -03:30
cast bool to str for runner env
It appears this was causing a fatal error for runner
This commit is contained in:
@@ -1054,7 +1054,7 @@ class RunProjectUpdate(BaseTask):
|
|||||||
env['TMP'] = settings.AWX_ISOLATION_BASE_PATH
|
env['TMP'] = settings.AWX_ISOLATION_BASE_PATH
|
||||||
env['PROJECT_UPDATE_ID'] = str(project_update.pk)
|
env['PROJECT_UPDATE_ID'] = str(project_update.pk)
|
||||||
if settings.GALAXY_IGNORE_CERTS:
|
if settings.GALAXY_IGNORE_CERTS:
|
||||||
env['ANSIBLE_GALAXY_IGNORE'] = True
|
env['ANSIBLE_GALAXY_IGNORE'] = str(True)
|
||||||
|
|
||||||
# build out env vars for Galaxy credentials (in order)
|
# build out env vars for Galaxy credentials (in order)
|
||||||
galaxy_server_list = []
|
galaxy_server_list = []
|
||||||
|
|||||||
@@ -1346,7 +1346,7 @@ class TestProjectUpdateGalaxyCredentials(TestJobExecution):
|
|||||||
task.instance = project_update
|
task.instance = project_update
|
||||||
env = task.build_env(project_update, private_data_dir)
|
env = task.build_env(project_update, private_data_dir)
|
||||||
if ignore:
|
if ignore:
|
||||||
assert env['ANSIBLE_GALAXY_IGNORE'] is True
|
assert env['ANSIBLE_GALAXY_IGNORE'] == 'True'
|
||||||
else:
|
else:
|
||||||
assert 'ANSIBLE_GALAXY_IGNORE' not in env
|
assert 'ANSIBLE_GALAXY_IGNORE' not in env
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user