Skip to content

Commit

Permalink
Don't return False when target exists. (Fixes: #49748)
Browse files Browse the repository at this point in the history
  • Loading branch information
MTecknology committed Sep 30, 2018
1 parent 3dc57a6 commit a8b6e25
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion salt/states/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -6375,7 +6375,6 @@ def rename(name, source, force=False, makedirs=False):
if not force:
ret['comment'] = ('The target file "{0}" exists and will not be '
'overwritten'.format(name))
ret['result'] = False
return ret
elif not __opts__['test']:
# Remove the destination to prevent problems later
Expand Down

0 comments on commit a8b6e25

Please sign in to comment.