diff options
Diffstat (limited to 'lib/ansible/vars/hostvars.py')
-rw-r--r-- | lib/ansible/vars/hostvars.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ansible/vars/hostvars.py b/lib/ansible/vars/hostvars.py index afa00ec8a4..2370b8f8a8 100644 --- a/lib/ansible/vars/hostvars.py +++ b/lib/ansible/vars/hostvars.py @@ -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 |