Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
WIP
  • Loading branch information
pkittenis committed Aug 20, 2022
commit 7eba21dcb7512d6d19008c2e60d455fa1ba6ce66
12 changes: 4 additions & 8 deletions pssh/clients/native/parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,16 +359,12 @@ def copy_remote_file(self, remote_file, local_file, recurse=False,
encoding=encoding)

def _scp_send(self, host_i, host, local_file, remote_file, recurse=False):
self._get_ssh_client(host_i, host)
return self._handle_greenlet_exc(
self._host_clients[(host_i, host)].scp_send, host,
local_file, remote_file, recurse=recurse)
_client = self._get_ssh_client(host_i, host)
return _client.scp_send(local_file, remote_file, recurse=recurse)

def _scp_recv(self, host_i, host, remote_file, local_file, recurse=False):
self._get_ssh_client(host_i, host)
return self._handle_greenlet_exc(
self._host_clients[(host_i, host)].scp_recv, host,
remote_file, local_file, recurse=recurse)
_client = self._get_ssh_client(host_i, host)
return _client.scp_recv(remote_file, local_file, recurse=recurse)

def scp_send(self, local_file, remote_file, recurse=False, copy_args=None):
"""Copy local file to remote file in parallel via SCP.
Expand Down