From 3783dc42d466c4b014a8a89a425c73a349ab6ea4 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Mon, 3 Jun 2013 09:57:02 -0400 Subject: [PATCH] normalize path --- 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 5d23e40258..89795c0c55 100644 --- a/lib/ansible/utils/template.py +++ b/lib/ansible/utils/template.py @@ -473,7 +473,7 @@ def template_from_string(basedir, data, vars): if '_original_file' in vars: basedir = os.path.dirname(vars['_original_file']) - filesdir = os.path.join(basedir, '..', 'files') + filesdir = os.path.abspath(os.path.join(basedir, '..', 'files')) if os.path.exists(filesdir): basedir = filesdir