From 7ec84394f98accc66c702416dc4dc70347d5f8a4 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Wed, 11 Jan 2017 10:45:46 -0600 Subject: [PATCH] Partial revert of 76f7ce55 (cherry picked from commit a94a48f85fe4a76ab6e61ef9d1b9266b17cabc74) --- lib/ansible/template/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/template/__init__.py b/lib/ansible/template/__init__.py index bfe375dc785..609dc81aba4 100644 --- a/lib/ansible/template/__init__.py +++ b/lib/ansible/template/__init__.py @@ -384,7 +384,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"):