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:
Brian Coca 2018-04-10 22:15:52 -04:00 committed by GitHub
parent 399cba1c84
commit 886c4edfb9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 6 deletions

View file

@ -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: