mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 15:21:13 +03:00
Don't create a group that is its own parent when an EC2 tag has an empty value. Fixes https://trello.com/c/2zc0odvX
This commit is contained in:
parent
001127f8bd
commit
139a072afa
@ -527,7 +527,8 @@ class Ec2Inventory(object):
|
||||
self.push(self.inventory, key, dest)
|
||||
if self.nested_groups:
|
||||
self.push_group(self.inventory, 'tags', self.to_safe("tag_" + k))
|
||||
self.push_group(self.inventory, self.to_safe("tag_" + k), key)
|
||||
if v:
|
||||
self.push_group(self.inventory, self.to_safe("tag_" + k), key)
|
||||
|
||||
# Inventory: Group by Route53 domain names if enabled
|
||||
if self.route53_enabled and self.group_by_route53_names:
|
||||
|
Loading…
Reference in New Issue
Block a user