Fixing lint violation

This commit is contained in:
Nitin Madhok 2014-09-27 00:35:25 -04:00
parent 1f36fa6b4c
commit 45e9bf0b6e

View File

@ -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)