Change getlist back to list (using _list)

This commit is contained in:
Joseph Hall 2017-01-15 14:52:17 -07:00
parent ff734fe93b
commit 436ba28f08

View file

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