mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 06:30:19 -07:00
fixed caches (#30667)
This commit is contained in:
parent
0b8e38d022
commit
2ffe3c42bb
7 changed files with 27 additions and 22 deletions
|
@ -45,11 +45,11 @@ class BaseInventoryPlugin(object):
|
|||
|
||||
TYPE = 'generator'
|
||||
|
||||
def __init__(self, cache=None):
|
||||
def __init__(self):
|
||||
|
||||
self.inventory = None
|
||||
self.display = display
|
||||
self.cache = cache
|
||||
self._cache = {}
|
||||
|
||||
def parse(self, inventory, loader, path, cache=True):
|
||||
''' Populates self.groups from the given data. Raises an error on any parse failure. '''
|
||||
|
@ -160,10 +160,9 @@ class BaseFileInventoryPlugin(BaseInventoryPlugin):
|
|||
|
||||
TYPE = 'storage'
|
||||
|
||||
def __init__(self, cache=None):
|
||||
def __init__(self):
|
||||
|
||||
# file based inventories are always local so no need for cache
|
||||
super(BaseFileInventoryPlugin, self).__init__(cache=None)
|
||||
super(BaseFileInventoryPlugin, self).__init__()
|
||||
|
||||
|
||||
# Helper methods
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue