From d7f38d07b3f3deed374214c1748f2a7caca8ac32 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 19 Nov 2012 09:54:19 -0500 Subject: [PATCH] fixed bug for string size mismatch, now substring depends on size of match string Signed-off-by: Brian Coca Signed-off-by: Brian Coca --- lib/ansible/utils/template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/utils/template.py b/lib/ansible/utils/template.py index 311be63f5d..53ff0275fb 100644 --- a/lib/ansible/utils/template.py +++ b/lib/ansible/utils/template.py @@ -279,7 +279,7 @@ def template_from_file(basedir, path, vars): # Get jinja env overrides from template if data.startswith(JINJA2_OVERRIDE): eol = data.find('\n') - line = data[5:eol] + line = data[len(JINJA2_OVERRIDE):eol] data = data[eol+1:] for pair in line.split(','): (key,val) = pair.split(':')