1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Do not silently skip YAML groups (#40660)

This commit is contained in:
Dag Wieers 2018-05-24 15:56:46 +02:00 committed by Brian Coca
parent c04d0ebc23
commit d7419b4dbc

View file

@ -143,6 +143,9 @@ class InventoryModule(BaseFileInventoryPlugin):
else:
self.display.warning('Skipping unexpected key (%s) in group (%s), only "vars", "children" and "hosts" are valid' % (key, group))
else:
self.display.warning("Skipping '%s' as this is not a valid group name" % group)
def _parse_host(self, host_pattern):
'''
Each host key can be a pattern, try to process it and add variables as needed