mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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.
This commit is contained in:
parent
9377c3f525
commit
2d81a1fa77
1 changed files with 1 additions and 1 deletions
|
@ -321,7 +321,7 @@ def varReplace(raw, vars, depth=0):
|
||||||
|
|
||||||
return ''.join(done)
|
return ''.join(done)
|
||||||
|
|
||||||
_FILEPIPECRE = re.compile(r"\$(?P<special>FILE|PIPE)\(([^\}]+)\)")
|
_FILEPIPECRE = re.compile(r"\$(?P<special>FILE|PIPE)\(([^\)]+)\)")
|
||||||
def varReplaceFilesAndPipes(basedir, raw):
|
def varReplaceFilesAndPipes(basedir, raw):
|
||||||
done = [] # Completed chunks to return
|
done = [] # Completed chunks to return
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue