mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-13 19:59:10 -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 DictDataLoader(DataLoader):
|
|||
self._build_known_directories()
|
||||
self._vault_secrets = None
|
||||
|
||||
def load_from_file(self, path, unsafe=False):
|
||||
def load_from_file(self, path, cache=True, unsafe=False):
|
||||
path = to_text(path)
|
||||
if path in self._file_mapping:
|
||||
return self.load(self._file_mapping[path], path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue