AC-615 Handle Rackspace inventory import when source_regions is empty string.

This commit is contained in:
Chris Church
2013-11-06 22:47:52 -05:00
parent 56a4bc8d3a
commit 475c0d87c2
2 changed files with 8 additions and 1 deletions

View File

@@ -782,7 +782,7 @@ class RunInventoryUpdate(BaseTask):
env['EC2_INI_PATH'] = kwargs.get('private_data_file', '')
elif inventory_source.source == 'rackspace':
env['RAX_CREDS_FILE'] = kwargs.get('private_data_file', '')
env['RAX_REGION'] = inventory_source.source_regions
env['RAX_REGION'] = inventory_source.source_regions or 'all'
# 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'