mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #2077 from FireHost/fix_file_comment_reversed_diff
Fix reversed diff on file.comment
This commit is contained in:
commit
83c8334101
@ -1680,7 +1680,7 @@ def comment(name, regex, char='#', backup='.bak'):
|
||||
if slines != nlines:
|
||||
# Changes happened, add them
|
||||
ret['changes']['diff'] = (
|
||||
''.join(difflib.unified_diff(nlines, slines))
|
||||
''.join(difflib.unified_diff(slines, nlines))
|
||||
)
|
||||
|
||||
if ret['result']:
|
||||
|
Loading…
Reference in New Issue
Block a user