Merge pull request #2107 from FireHost/fix_file_managed_diff

Fix reversed diff on file.managed
This commit is contained in:
Thomas S Hatch 2012-09-26 19:29:47 -07:00
commit 06e3f4035b

View File

@ -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(