From d1753046e001c56e960980da79034a79d5a5bf27 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Thu, 13 Mar 2014 07:46:08 -0400 Subject: [PATCH] Revert "Correctly catch template errors without returning invalid data" This reverts commit 3cd7d47b7ec2a8a560c6da803768eb3d9983c252. --- lib/ansible/utils/template.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/ansible/utils/template.py b/lib/ansible/utils/template.py index e58543c411..fc4ff9fd20 100644 --- a/lib/ansible/utils/template.py +++ b/lib/ansible/utils/template.py @@ -316,8 +316,6 @@ def template_from_string(basedir, data, vars, fail_on_undefined=False): except Exception, e: if 'recursion' in str(e): raise errors.AnsibleError("recursive loop detected in template string: %s" % data) - elif isinstance(e, TemplateSyntaxError): - raise errors.AnsibleError("there was an error in the template: %s" % data) else: return data