Do not silently skip YAML groups (#40660)

pull/40665/head
Dag Wieers 6 years ago committed by Brian Coca
parent c04d0ebc23
commit d7419b4dbc

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

Loading…
Cancel
Save