mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-26 16:36:29 +00:00
Merge pull request #1113 from jpmens/file_pipe
Strip trailing white space from $FILE()/$PIPE()
This commit is contained in:
@@ -317,7 +317,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)
|
||||
|
||||
Reference in New Issue
Block a user