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:
parent
c04d0ebc23
commit
d7419b4dbc
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue