diff --git a/lib/ansible/template/__init__.py b/lib/ansible/template/__init__.py index 3eb085b2bba..709ee03ef8d 100644 --- a/lib/ansible/template/__init__.py +++ b/lib/ansible/template/__init__.py @@ -332,8 +332,8 @@ class Templar: # we only cache in the case where we have a single variable # name, to make sure we're not putting things which may otherwise # be dynamic in the cache (filters, lookups, etc.) - #if var_name not in (None, 'item'): - # self._cached_result[sha1_hash] = result + if var_name not in (None, 'item'): + self._cached_result[sha1_hash] = result return result