mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
parent
9b5c14c37c
commit
edce22a143
1 changed files with 2 additions and 1 deletions
|
@ -3626,7 +3626,8 @@ def copy(
|
|||
hash1 = salt.utils.get_hash(name)
|
||||
hash2 = salt.utils.get_hash(source)
|
||||
if hash1 == hash2:
|
||||
changed = False
|
||||
changed = True
|
||||
ret['comment'] = ' '.join([ret['comment'], '- files are identical but force flag is set'])
|
||||
if not force:
|
||||
changed = False
|
||||
elif not __opts__['test'] and changed:
|
||||
|
|
Loading…
Add table
Reference in a new issue