mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 10:51:24 -07:00
* fixed python3 keys()
* added changelog fragment
* Update plugins/modules/cloud/spotinst/spotinst_aws_elastigroup.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/cache/redis.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* rolledback redis.py per PR
* Update plugins/modules/monitoring/sensu/sensu_check.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* removed unnecessary ignore lines
* adding memcached and one case in redis is indeed necessary
* Update changelogs/fragments/1861-python3-keys.yml
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update changelogs/fragments/1861-python3-keys.yml
* Update changelogs/fragments/1861-python3-keys.yml
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 434f383ae9
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
4eef56b7b3
commit
084879632a
23 changed files with 64 additions and 50 deletions
6
plugins/cache/redis.py
vendored
6
plugins/cache/redis.py
vendored
|
@ -217,14 +217,12 @@ class CacheModule(BaseCacheModule):
|
|||
self._db.zrem(self._keys_set, key)
|
||||
|
||||
def flush(self):
|
||||
for key in self.keys():
|
||||
for key in list(self.keys()):
|
||||
self.delete(key)
|
||||
|
||||
def copy(self):
|
||||
# TODO: there is probably a better way to do this in redis
|
||||
ret = dict()
|
||||
for key in self.keys():
|
||||
ret[key] = self.get(key)
|
||||
ret = dict([(k, self.get(k)) for k in self.keys()])
|
||||
return ret
|
||||
|
||||
def __getstate__(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue