Merge pull request #48238 from mirceaulinic/fix-sdb-cache

SDB cache module: AttributeError: 'Cache' object has no attribute 'set'
This commit is contained in:
Nicole Thomas 2018-06-22 11:37:21 -04:00 committed by GitHub
commit 056f43f663
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,7 +69,7 @@ def set_(key, value, service=None, profile=None): # pylint: disable=W0613
'''
key, profile = _parse_key(key, profile)
cache = salt.cache.Cache(__opts__)
cache.set(profile['bank'], key=key, value=value)
cache.store(profile['bank'], key, value)
return get(key, service, profile)