Merge pull request #12965 from matburt/fix_ec2_nested_groups

Fix ec2 infinitely nested groups
This commit is contained in:
James Cammarata 2015-10-29 13:31:59 -04:00
commit 6d89676a42

View file

@ -703,6 +703,7 @@ class Ec2Inventory(object):
self.push(self.inventory, key, dest)
if self.nested_groups:
self.push_group(self.inventory, 'tags', self.to_safe("tag_" + k))
if v:
self.push_group(self.inventory, self.to_safe("tag_" + k), key)
# Inventory: Group by Route53 domain names if enabled
@ -1309,3 +1310,4 @@ class Ec2Inventory(object):
# Run the script
Ec2Inventory()