mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Fix script inventory plugin
This commit is contained in:
committed by
Brian Coca
parent
9737c6b90d
commit
8ca836ad14
@@ -113,12 +113,12 @@ class InventoryModule(BaseInventoryPlugin):
|
||||
|
||||
group = None
|
||||
data_from_meta = None
|
||||
for (group, gdata) in data.items():
|
||||
for (group, gdata) in processed.items():
|
||||
if group == '_meta':
|
||||
if 'hostvars' in data:
|
||||
data_from_meta = data['hostvars']
|
||||
else:
|
||||
self.parse_group(group, gdata)
|
||||
self._parse_group(group, gdata)
|
||||
|
||||
# in Ansible 1.3 and later, a "_meta" subelement may contain
|
||||
# a variable "hostvars" which contains a hash for each host
|
||||
|
||||
Reference in New Issue
Block a user