cleaned up some pylint errors

This commit is contained in:
Eric Fode 2015-05-04 16:30:58 -07:00 committed by rallytime
parent f981699c75
commit cf131c9a5a

View File

@ -1034,7 +1034,7 @@ def deploy_script(host,
continue
if os.path.isdir(local_file):
dir_name = os.path.basename(local_file)
dir_name = os.path.basename(local_file)
remote_dir = os.path.join(os.path.dirname(remote_file),
dir_name)
else:
@ -1548,7 +1548,6 @@ def sftp_file(dest_path, contents=None, kwargs=None, local_file=None):
if os.path.isdir(local_file):
put_args = ['-r']
log.debug('Uploading {0} to {1} (sfcp)'.format(dest_path, kwargs.get('hostname')))
ssh_args = [