From 2d81a1fa771755397bff6bbbc8607269f5a46f74 Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Sat, 29 Sep 2012 21:16:13 +0200 Subject: [PATCH] Complete the change from $FILE{} to $FILE() Otherwise, parsing e.g. '$FILE(myfile)'.find("stuff") will include everything up to the last ) as the filename. --- lib/ansible/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/utils.py b/lib/ansible/utils.py index a980e49ef4f..202db6e3abf 100644 --- a/lib/ansible/utils.py +++ b/lib/ansible/utils.py @@ -321,7 +321,7 @@ def varReplace(raw, vars, depth=0): return ''.join(done) -_FILEPIPECRE = re.compile(r"\$(?PFILE|PIPE)\(([^\}]+)\)") +_FILEPIPECRE = re.compile(r"\$(?PFILE|PIPE)\(([^\)]+)\)") def varReplaceFilesAndPipes(basedir, raw): done = [] # Completed chunks to return