mirror of
https://github.com/ansible/awx.git
synced 2026-02-16 10:40:01 -03:30
fix a bug that causes azure inventory syncs w/ region='all' to fail
see: https://github.com/ansible/ansible-tower/issues/7668
This commit is contained in:
@@ -1791,7 +1791,7 @@ class RunInventoryUpdate(BaseTask):
|
|||||||
cp.set(section, 'group_by_resource_group', 'yes')
|
cp.set(section, 'group_by_resource_group', 'yes')
|
||||||
cp.set(section, 'group_by_location', 'yes')
|
cp.set(section, 'group_by_location', 'yes')
|
||||||
cp.set(section, 'group_by_tag', '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(
|
cp.set(
|
||||||
section, 'locations',
|
section, 'locations',
|
||||||
','.join([x.strip() for x in inventory_update.source_regions.split(',')])
|
','.join([x.strip() for x in inventory_update.source_regions.split(',')])
|
||||||
|
|||||||
Reference in New Issue
Block a user