Commit 0c29807b by jctanner

Merge pull request #3993 from stoned/inventory-script-all-group-fix

Avoid duplicates of the 'all' group when using inventory script.
parents 9e8eef84 6cbd94df
...@@ -72,7 +72,10 @@ class InventoryScript(object): ...@@ -72,7 +72,10 @@ class InventoryScript(object):
self.host_vars_from_top = data['hostvars'] self.host_vars_from_top = data['hostvars']
continue continue
group = groups[group_name] = Group(group_name) if group_name != all.name:
group = groups[group_name] = Group(group_name)
else:
group = all
host = None host = None
if not isinstance(data, dict): if not isinstance(data, dict):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment