mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-02 23:31:25 -07:00
Fixing new caching related issue with host vars
The vars_cache was not being properly merged with the setup_cache for all hosts, which was previously not noticed when registered variables were stored in the setup_cache. Fixes #8944
This commit is contained in:
parent
0179c13e04
commit
10afaee108
5 changed files with 20 additions and 2 deletions
7
lib/ansible/cache/redis.py
vendored
7
lib/ansible/cache/redis.py
vendored
|
@ -93,3 +93,10 @@ class CacheModule(BaseCacheModule):
|
|||
def flush(self):
|
||||
for key in self.keys():
|
||||
self.delete(key)
|
||||
|
||||
def copy(self):
|
||||
# FIXME: there is probably a better way to do this in redis
|
||||
ret = dict()
|
||||
for key in self.keys():
|
||||
ret[key] self.get(key)
|
||||
return ret
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue