From ae320ab2287290a51ed9a089cc386dac140dadb0 Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Thu, 22 Apr 2021 11:29:26 -0400 Subject: [PATCH] Do not set openstack env var to blank string --- awx/main/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 887daac1c4..d7677c2890 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -1531,7 +1531,7 @@ class RunJob(BaseTask): # Set environment variables for cloud credentials. cred_files = private_data_files.get('credentials', {}) for cloud_cred in job.cloud_credentials: - if cloud_cred and cloud_cred.credential_type.namespace == 'openstack': + if cloud_cred and cloud_cred.credential_type.namespace == 'openstack' and cred_files.get(cloud_cred, ''): env['OS_CLIENT_CONFIG_FILE'] = to_container_path(cred_files.get(cloud_cred, ''), private_data_dir) for network_cred in job.network_credentials: