Merge pull request #40629 from aabognah/fix-bug-40167

Fixing issue # 40167
This commit is contained in:
Mike Place 2017-04-11 16:45:07 -06:00 committed by GitHub
commit 3737289bee

View File

@ -2231,8 +2231,8 @@ def replace(path,
check_perms(path, None, pre_user, pre_group, pre_mode)
if show_changes:
orig_file_as_str = ''.join([salt.utils.to_str(x) for x in orig_file])
new_file_as_str = ''.join([salt.utils.to_str(x) for x in new_file])
orig_file_as_str = [salt.utils.to_str(x) for x in orig_file]
new_file_as_str = [salt.utils.to_str(x) for x in new_file]
return ''.join(difflib.unified_diff(orig_file_as_str, new_file_as_str))
return has_changes