Prevent passing "all" to GCE_ZONE

This commit is contained in:
Aaron Tan
2017-08-04 12:36:50 -04:00
parent 2fae1d22f9
commit 148af54af7
2 changed files with 8 additions and 1 deletions

View File

@@ -1847,7 +1847,7 @@ class RunInventoryUpdate(BaseTask):
env['GCE_EMAIL'] = passwords.get('source_username', '')
env['GCE_PROJECT'] = passwords.get('source_project', '')
env['GCE_PEM_FILE_PATH'] = cloud_credential
env['GCE_ZONE'] = inventory_update.source_regions
env['GCE_ZONE'] = inventory_update.source_regions if inventory_update.source_regions != 'all' else ''
elif inventory_update.source == 'openstack':
env['OS_CLIENT_CONFIG_FILE'] = cloud_credential
elif inventory_update.source == 'satellite6':