diff --git a/salt/utils/cloud.py b/salt/utils/cloud.py index 4c9ac82757..925a752ee7 100644 --- a/salt/utils/cloud.py +++ b/salt/utils/cloud.py @@ -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 = [