mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Update file.py
This commit is contained in:
parent
85d461f748
commit
996b431252
@ -3645,7 +3645,7 @@ def copy(
|
||||
ret['changes'] = {name: source}
|
||||
# Preserve really means just keep the behavior of the cp command. If
|
||||
# the filesystem we're copying to is squashed or doesn't support chown
|
||||
# then we shouldn't be checking permissions
|
||||
# then we shouldn't be checking anything.
|
||||
if not preserve:
|
||||
__salt__['file.check_perms'](name, ret, user, group, mode)
|
||||
except (IOError, OSError):
|
||||
|
Loading…
Reference in New Issue
Block a user