mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 12:21:26 -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
|
@ -91,7 +91,7 @@ class InventoryModule(BaseFileInventoryPlugin):
|
|||
super(InventoryModule, self).parse(inventory, loader, path)
|
||||
|
||||
try:
|
||||
data = self.loader.load_from_file(path)
|
||||
data = self.loader.load_from_file(path, cache=False)
|
||||
except Exception as e:
|
||||
raise AnsibleParserError(e)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue