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:
James Cammarata 2014-09-09 15:35:08 -05:00
parent 0179c13e04
commit 10afaee108
5 changed files with 20 additions and 2 deletions

View file

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