mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
We do not want to overload the list() type because if we do, we turn this function into a recursive one, which results in an exception because set() cannot be concatenated with str ('/')
This commit is contained in:
parent
cfd82d1631
commit
9d9de67219
2 changed files with 2 additions and 2 deletions
2
salt/cache/__init__.py
vendored
2
salt/cache/__init__.py
vendored
|
@ -206,7 +206,7 @@ class Cache(object):
|
|||
Raises an exception if cache driver detected an error accessing data
|
||||
in the cache backend (auth, permissions, etc).
|
||||
'''
|
||||
fun = '{0}.{1}'.format(self.driver, 'list')
|
||||
fun = '{0}.{1}'.format(self.driver, 'getlist')
|
||||
return self.modules[fun](bank)
|
||||
|
||||
def contains(self, bank, key=None):
|
||||
|
|
2
salt/cache/consul.py
vendored
2
salt/cache/consul.py
vendored
|
@ -129,7 +129,7 @@ def flush(bank, key=None):
|
|||
)
|
||||
|
||||
|
||||
def list(bank):
|
||||
def getlist(bank):
|
||||
'''
|
||||
Return an iterable object containing all entries stored in the specified bank.
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue