mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge pull request #40629 from aabognah/fix-bug-40167
Fixing issue # 40167
This commit is contained in:
commit
3737289bee
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user