mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 19:21:06 -03:30
AC-558 When importing from Rackspace, add environment variable to make vendored package happy.
This commit is contained in:
@@ -772,6 +772,9 @@ class RunInventoryUpdate(BaseTask):
|
|||||||
elif inventory_source.source == 'rackspace':
|
elif inventory_source.source == 'rackspace':
|
||||||
env['RAX_CREDS_FILE'] = kwargs.get('private_data_file', '')
|
env['RAX_CREDS_FILE'] = kwargs.get('private_data_file', '')
|
||||||
env['RAX_REGION'] = inventory_source.source_regions
|
env['RAX_REGION'] = inventory_source.source_regions
|
||||||
|
# Set this environment variable so the vendored package won't
|
||||||
|
# complain about not being able to determine its version number.
|
||||||
|
env['PBR_VERSION'] = '0.5.21'
|
||||||
elif inventory_source.source == 'file':
|
elif inventory_source.source == 'file':
|
||||||
# FIXME: Parse source_env to dict, update env.
|
# FIXME: Parse source_env to dict, update env.
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user