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']: