mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Fix setting required options for inventory plugins (#42049)
* Fix setting required options for inventory plugins * call set_options for yaml and script plugin
This commit is contained in:
committed by
Brian Coca
parent
aea396f04b
commit
44e5886385
@@ -85,6 +85,7 @@ class InventoryModule(BaseInventoryPlugin, Cacheable):
|
||||
def parse(self, inventory, loader, path, cache=None):
|
||||
|
||||
super(InventoryModule, self).parse(inventory, loader, path)
|
||||
self.set_options()
|
||||
|
||||
if cache is None:
|
||||
cache = self.get_option('cache')
|
||||
|
||||
Reference in New Issue
Block a user