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
commit 10afaee108
5 changed files with 20 additions and 2 deletions

View file

@ -15,7 +15,9 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
class CacheModule(object):
from ansible.cache.base import BaseCacheModule
class CacheModule(BaseCacheModule):
def __init__(self, *args, **kwargs):
self._cache = {}
@ -37,3 +39,6 @@ class CacheModule(object):
def flush(self):
self._cache = {}
def copy(self):
return self._cache.copy()