mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 18:07:36 -02:30
Fix another credential path-in-container bug
This commit is contained in:
committed by
Shane McDonald
parent
ba14634318
commit
0dfb183cb6
@@ -1728,7 +1728,10 @@ class RunJob(BaseTask):
|
|||||||
cred_files = private_data_files.get('credentials', {})
|
cred_files = private_data_files.get('credentials', {})
|
||||||
for cloud_cred in job.cloud_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':
|
||||||
env['OS_CLIENT_CONFIG_FILE'] = cred_files.get(cloud_cred, '')
|
env['OS_CLIENT_CONFIG_FILE'] = os.path.join(
|
||||||
|
'/runner',
|
||||||
|
os.path.basename(cred_files.get(cloud_cred, ''))
|
||||||
|
)
|
||||||
|
|
||||||
for network_cred in job.network_credentials:
|
for network_cred in job.network_credentials:
|
||||||
env['ANSIBLE_NET_USERNAME'] = network_cred.get_input('username', default='')
|
env['ANSIBLE_NET_USERNAME'] = network_cred.get_input('username', default='')
|
||||||
|
|||||||
Reference in New Issue
Block a user