GCE plugin should not set any regions when 'all' specified

This commit is contained in:
Jim Ladd 2019-01-25 13:23:45 -08:00 committed by AlanCoding
parent de808d4911
commit d46a403a49
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B

View File

@ -1897,7 +1897,7 @@ class gce(PluginFileInjector):
service_account_file="creds.json",
auth_kind="serviceaccount"
)
if inventory_source.source_regions:
if inventory_source.source_regions and 'all' not in inventory_source.source_regions:
ret['zones'] = inventory_source.source_regions.split(',')
return ret