mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Change getlist back to list (using _list)
This commit is contained in:
parent
ff734fe93b
commit
436ba28f08
1 changed files with 7 additions and 1 deletions
8
salt/cache/consul.py
vendored
8
salt/cache/consul.py
vendored
|
@ -46,6 +46,9 @@ except ImportError:
|
|||
|
||||
from salt.exceptions import SaltCacheError
|
||||
|
||||
# Don't shadow built-ins
|
||||
__func_alias__ = {'list_': 'list'}
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
api = None
|
||||
|
||||
|
@ -129,7 +132,7 @@ def flush(bank, key=None):
|
|||
)
|
||||
|
||||
|
||||
def getlist(bank):
|
||||
def _list(bank):
|
||||
'''
|
||||
Return an iterable object containing all entries stored in the specified bank.
|
||||
'''
|
||||
|
@ -153,6 +156,9 @@ def getlist(bank):
|
|||
return keys
|
||||
|
||||
|
||||
getlist = _list
|
||||
|
||||
|
||||
def contains(bank, key):
|
||||
'''
|
||||
Checks if the specified bank contains the specified key.
|
||||
|
|
Loading…
Add table
Reference in a new issue