mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 04:40:22 -07:00
avoid caching invetnory sources in loader (#38242)
* fix inventory plugin source caching - avoid caching invetnory sources in loader in base - same fix for yaml plugin - idem for 'auto' plugin fixes #37162 * fix mock dataloader func sig
This commit is contained in:
parent
399cba1c84
commit
886c4edfb9
5 changed files with 7 additions and 6 deletions
|
@ -38,7 +38,7 @@ class InventoryModule(BaseInventoryPlugin):
|
|||
return super(InventoryModule, self).verify_file(path)
|
||||
|
||||
def parse(self, inventory, loader, path, cache=True):
|
||||
config_data = loader.load_from_file(path)
|
||||
config_data = loader.load_from_file(path, cache=False)
|
||||
|
||||
plugin_name = config_data.get('plugin')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue