mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Use tuple instead of list for joining
This commit is contained in:
parent
ec3e8211ef
commit
7949925ae6
@ -1924,9 +1924,9 @@ def line(path, content=None, match=None, mode=None, location=None,
|
||||
|
||||
else:
|
||||
if location == 'start':
|
||||
body = os.linesep.join([content, body])
|
||||
body = os.linesep.join((content, body))
|
||||
elif location == 'end':
|
||||
body = os.linesep.join([body, _get_line_indent(body[-1], content, indent) if body else content])
|
||||
body = os.linesep.join((body, _get_line_indent(body[-1], content, indent) if body else content))
|
||||
|
||||
elif mode == 'ensure':
|
||||
after = after and after.strip()
|
||||
|
Loading…
Reference in New Issue
Block a user