mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #13184 from nitzmahone/hostvars_undefined_fix
hostvars should return j2 undefined as instance, not type
This commit is contained in:
commit
6a2559be02
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ class HostVars(collections.Mapping):
|
|||
def __getitem__(self, host_name):
|
||||
|
||||
if host_name not in self._lookup:
|
||||
return j2undefined
|
||||
return j2undefined()
|
||||
|
||||
host = self._lookup.get(host_name)
|
||||
data = self._variable_manager.get_vars(loader=self._loader, host=host, play=self._play, include_hostvars=False)
|
||||
|
|
Loading…
Reference in a new issue