1
0
Fork 0
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:
Joseph Callen 2017-05-23 21:12:06 -04:00 committed by Brian Coca
parent 9737c6b90d
commit 8ca836ad14

View file

@ -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