mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix script inventory plugin
This commit is contained in:
parent
9737c6b90d
commit
8ca836ad14
1 changed files with 2 additions and 2 deletions
|
@ -113,12 +113,12 @@ class InventoryModule(BaseInventoryPlugin):
|
||||||
|
|
||||||
group = None
|
group = None
|
||||||
data_from_meta = None
|
data_from_meta = None
|
||||||
for (group, gdata) in data.items():
|
for (group, gdata) in processed.items():
|
||||||
if group == '_meta':
|
if group == '_meta':
|
||||||
if 'hostvars' in data:
|
if 'hostvars' in data:
|
||||||
data_from_meta = data['hostvars']
|
data_from_meta = data['hostvars']
|
||||||
else:
|
else:
|
||||||
self.parse_group(group, gdata)
|
self._parse_group(group, gdata)
|
||||||
|
|
||||||
# in Ansible 1.3 and later, a "_meta" subelement may contain
|
# in Ansible 1.3 and later, a "_meta" subelement may contain
|
||||||
# a variable "hostvars" which contains a hash for each host
|
# a variable "hostvars" which contains a hash for each host
|
||||||
|
|
Loading…
Reference in a new issue