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
|
@ -104,8 +104,7 @@ class InventoryModule(BaseFileInventoryPlugin):
|
|||
self._filename = path
|
||||
|
||||
try:
|
||||
# Read in the hosts, groups, and variables defined in the
|
||||
# inventory file.
|
||||
# Read in the hosts, groups, and variables defined in the inventory file.
|
||||
if self.loader:
|
||||
(b_data, private) = self.loader._get_file_contents(path)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue