mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Set all in the returned dict
Otherwise the group is lost, and group_vars/all isn't used.
This commit is contained in:
parent
002fa07913
commit
2bfb7deec0
1 changed files with 1 additions and 2 deletions
|
@ -41,10 +41,9 @@ class InventoryScript(object):
|
||||||
def _parse(self):
|
def _parse(self):
|
||||||
all_hosts = {}
|
all_hosts = {}
|
||||||
|
|
||||||
groups = {}
|
|
||||||
self.raw = utils.parse_json(self.data)
|
self.raw = utils.parse_json(self.data)
|
||||||
all=Group('all')
|
all=Group('all')
|
||||||
self.groups = dict(all=all)
|
groups = dict(all=all)
|
||||||
group = None
|
group = None
|
||||||
for (group_name, hosts) in self.raw.items():
|
for (group_name, hosts) in self.raw.items():
|
||||||
group = groups[group_name] = Group(group_name)
|
group = groups[group_name] = Group(group_name)
|
||||||
|
|
Loading…
Reference in a new issue