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 bf13a88db20037cddea17aee43206472eb7d3fd4
12 changes: 6 additions & 6 deletions pssh/clients/base/parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,12 +572,12 @@ def _get_ssh_client(self, host_i, host):
return _client

def _load_pkey_data(self, _pkey):
if isinstance(_pkey, str):
_validate_pkey_path(_pkey)
with open(_pkey, 'rb') as fh:
_pkey_data = fh.read()
return _pkey_data
return _pkey
if not isinstance(_pkey, str):
return _pkey
_pkey = _validate_pkey_path(_pkey)
with open(_pkey, 'rb') as fh:
_pkey_data = fh.read()
return _pkey_data

def _make_ssh_client(self, host, cfg, _pkey_data):
raise NotImplementedError