From 84114e5c0b9badfda59e889649aaeb3d15e4ce20 Mon Sep 17 00:00:00 2001 From: Marcus Cobden Date: Mon, 11 Aug 2014 08:43:40 +0100 Subject: [PATCH] Fix copy/paste error --- lib/ansible/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/utils/__init__.py b/lib/ansible/utils/__init__.py index 9a861c86ea..44207134bc 100644 --- a/lib/ansible/utils/__init__.py +++ b/lib/ansible/utils/__init__.py @@ -364,7 +364,7 @@ def _clean_data(orig_data, from_remote=False, from_inventory=False): # a lookup plugin (ie. {{lookup('foo','bar'))}}) replace_prints = from_remote or (from_inventory and '{{' in orig_data and LOOKUP_REGEX.search(orig_data) is not None) - regex = PRINT_CODE_REGEX if replace_prints else ONLY_CODE_REGEX + regex = PRINT_CODE_REGEX if replace_prints else CODE_REGEX with contextlib.closing(cStringIO.StringIO()) as data: # these variables keep track of opening block locations, as we only