1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

_available_vars in v1 == _available_variables in v2

This commit is contained in:
Toshio Kuratomi 2015-04-13 12:57:17 -07:00
parent 4bbca9211a
commit 3a8088fe30

View file

@ -143,8 +143,8 @@ class Templar:
only_one = SINGLE_VAR.match(variable)
if only_one:
var_name = only_one.group(1)
if var_name in self._available_vars:
resolved_val = self._available_vars[var_name]
if var_name in self._available_variables:
resolved_val = self._available_variables[var_name]
if isinstance(resolved_val, NON_TEMPLATED_TYPES):
return resolved_val