From a8b6e25bff9df5db73b45a898129968de38b0f08 Mon Sep 17 00:00:00 2001 From: Michael Lustfield Date: Sun, 30 Sep 2018 16:56:34 -0500 Subject: [PATCH] Don't return False when target exists. (Fixes: #49748) --- salt/states/file.py | 1 - 1 file changed, 1 deletion(-) diff --git a/salt/states/file.py b/salt/states/file.py index db2dd8c673fb..3e13fab34f99 100644 --- a/salt/states/file.py +++ b/salt/states/file.py @@ -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