Set all in the returned dict

Otherwise the group is lost, and group_vars/all isn't used.
parent 002fa079
......@@ -41,10 +41,9 @@ class InventoryScript(object):
def _parse(self):
all_hosts = {}
groups = {}
self.raw = utils.parse_json(self.data)
all=Group('all')
self.groups = dict(all=all)
groups = dict(all=all)
group = None
for (group_name, hosts) in self.raw.items():
group = groups[group_name] = Group(group_name)
......
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