mirror of
https://github.com/ansible/awx.git
synced 2026-02-12 15:14:45 -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['PROJECT_UPDATE_ID'] = str(project_update.pk)
|
||||
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)
|
||||
galaxy_server_list = []
|
||||
|
||||
@@ -1346,7 +1346,7 @@ class TestProjectUpdateGalaxyCredentials(TestJobExecution):
|
||||
task.instance = project_update
|
||||
env = task.build_env(project_update, private_data_dir)
|
||||
if ignore:
|
||||
assert env['ANSIBLE_GALAXY_IGNORE'] is True
|
||||
assert env['ANSIBLE_GALAXY_IGNORE'] == 'True'
|
||||
else:
|
||||
assert 'ANSIBLE_GALAXY_IGNORE' not in env
|
||||
|
||||
|
||||
Reference in New Issue
Block a user