Make sure VariableManager has a view of HostVars

Fixes #15261
This commit is contained in:
James Cammarata 2016-04-05 11:31:00 -04:00
parent cca084c89d
commit 0f2b1244d2
4 changed files with 15 additions and 15 deletions

View file

@ -51,10 +51,12 @@ class HostVars(collections.Mapping):
self._inventory = inventory
self._loader = loader
self._variable_manager = variable_manager
variable_manager._hostvars = self
self._cached_result = dict()
def set_variable_manager(self, variable_manager):
self._variable_manager = variable_manager
variable_manager._hostvars = self
def set_inventory(self, inventory):
self._inventory = inventory