mirror of
https://github.com/ansible/awx.git
synced 2024-10-28 10:55:30 +03:00
AC-558 When importing from Rackspace, add environment variable to make vendored package happy.
This commit is contained in:
parent
508532f57b
commit
2f3409db08
@ -772,6 +772,9 @@ class RunInventoryUpdate(BaseTask):
|
||||
elif inventory_source.source == 'rackspace':
|
||||
env['RAX_CREDS_FILE'] = kwargs.get('private_data_file', '')
|
||||
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':
|
||||
# FIXME: Parse source_env to dict, update env.
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user