mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
fix 'return false' from parse
this was abandoned early on the manger side but seems like we left behind on plugin side. more flexible extensions with yaml plugin validate data correctly for yaml/constructed fixed issue with only adding one child to keyed, the group only got the host that forced it's creation fixes #31382 fixes #31365
This commit is contained in:
parent
f2ade09dce
commit
e4c61ea9a1
5 changed files with 28 additions and 19 deletions
|
@ -173,7 +173,7 @@ class InventoryModule(BaseInventoryPlugin):
|
|||
|
||||
if not config_data or config_data.get('plugin') != self.NAME:
|
||||
# this is not my config file
|
||||
return False
|
||||
raise AnsibleParserError("Incorrect plugin name in file: %s" % config_data.get('plugin', 'none found'))
|
||||
|
||||
source_data = None
|
||||
if cache and cache_key in inventory.cache:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue