mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-27 12:51:25 -07: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:
|
else:
|
||||||
self.display.warning('Skipping unexpected key (%s) in group (%s), only "vars", "children" and "hosts" are valid' % (key, group))
|
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):
|
def _parse_host(self, host_pattern):
|
||||||
'''
|
'''
|
||||||
Each host key can be a pattern, try to process it and add variables as needed
|
Each host key can be a pattern, try to process it and add variables as needed
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue