1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 01:21:21 +03:00

Merge pull request #449 from ryanpetrello/fix-7668

fix a bug that causes azure inventory syncs w/ region='all' to fail
This commit is contained in:
Ryan Petrello 2017-09-21 15:17:32 -04:00 committed by GitHub
commit a298f797b5

View File

@ -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(',')])