From d46a403a4975a6928cd4a4453f5994ae46ea46a6 Mon Sep 17 00:00:00 2001 From: Jim Ladd Date: Fri, 25 Jan 2019 13:23:45 -0800 Subject: [PATCH] GCE plugin should not set any regions when 'all' specified --- awx/main/models/inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/models/inventory.py b/awx/main/models/inventory.py index 32b6ca9cf5..899851c49e 100644 --- a/awx/main/models/inventory.py +++ b/awx/main/models/inventory.py @@ -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