From d2c3c138acd36565d421c2dd58fe673a62365305 Mon Sep 17 00:00:00 2001 From: Aaron Tygart Date: Sun, 23 Sep 2012 21:36:31 -0500 Subject: [PATCH] Fix reversed diff on file.comment --- salt/states/file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/states/file.py b/salt/states/file.py index 6e54830d02..4000761e8e 100644 --- a/salt/states/file.py +++ b/salt/states/file.py @@ -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']: