mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Merge pull request #2107 from FireHost/fix_file_managed_diff
Fix reversed diff on file.managed
This commit is contained in:
commit
06e3f4035b
@ -1106,8 +1106,8 @@ def managed(name,
|
||||
nlines = name_.readlines()
|
||||
# Print a diff equivalent to diff -u old new
|
||||
ret['changes']['diff'] = (''.join(difflib
|
||||
.unified_diff(slines,
|
||||
nlines)))
|
||||
.unified_diff(nlines,
|
||||
slines)))
|
||||
# Pre requisites are met, and the file needs to be replaced, do it
|
||||
try:
|
||||
salt.utils.copyfile(
|
||||
|
Loading…
Reference in New Issue
Block a user