From 328b70ceb8e1ce6c8da5e9f5d2fc4e01caf91bc0 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Thu, 21 Sep 2017 15:08:54 -0400 Subject: [PATCH] fix a bug that causes azure inventory syncs w/ region='all' to fail see: https://github.com/ansible/ansible-tower/issues/7668 --- awx/main/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 4dc4873e51..c213fd7644 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -1791,7 +1791,7 @@ class RunInventoryUpdate(BaseTask): cp.set(section, 'group_by_resource_group', 'yes') cp.set(section, 'group_by_location', 'yes') cp.set(section, 'group_by_tag', 'yes') - if inventory_update.source_regions: + if inventory_update.source_regions and 'all' not in inventory_update.source_regions: cp.set( section, 'locations', ','.join([x.strip() for x in inventory_update.source_regions.split(',')])