From 42620d2f191c5c168e08e5b433a80d082a090a38 Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Thu, 27 Sep 2012 23:47:34 +0200 Subject: [PATCH] Strip trailing white space from $FILE()/$PIPE() --- 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 e5d35c408b..b3d2f30da0 100644 --- a/lib/ansible/utils.py +++ b/lib/ansible/utils.py @@ -277,7 +277,7 @@ def varReplaceFilesAndPipes(basedir, raw): start, end = m.span() done.append(raw[:start]) # Keep stuff leading up to token - done.append(replacement) # Append replacement value + done.append(replacement.rstrip()) # Append replacement value raw = raw[end:] # Continue with remainder of string return ''.join(done)