mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Fixing lint violation
This commit is contained in:
parent
1f36fa6b4c
commit
45e9bf0b6e
@ -3529,7 +3529,7 @@ def copy(name, source, force=False, makedirs=False, preserve=False):
|
||||
try:
|
||||
shutil.copy(source, name)
|
||||
ret['changes'] = {name: source}
|
||||
if preserve == True:
|
||||
if preserve:
|
||||
source_user = __salt__['file.get_user'](source)
|
||||
source_group = __salt__['file.get_group'](source)
|
||||
source_mode = __salt__['file.get_mode'](source)
|
||||
|
Loading…
Reference in New Issue
Block a user