Partial revert of 76f7ce55

This commit is contained in:
James Cammarata 2017-01-11 10:45:46 -06:00
parent d316068831
commit a94a48f85f

View file

@ -383,7 +383,7 @@ class Templar:
disable_lookups=disable_lookups,
)
unsafe = hasattr(result, '__UNSAFE__')
if convert_data and not self._no_type_regex.match(variable) and not unsafe:
if convert_data and not self._no_type_regex.match(variable):
# if this looks like a dictionary or list, convert it to such using the safe_eval method
if (result.startswith("{") and not result.startswith(self.environment.variable_start_string)) or \
result.startswith("[") or result in ("True", "False"):