You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The command is executed on "your-server" at 10.0.2.4 like in the first usage example.
Actual result
A KeyError: '10.0.2.4' is raised.
Traceback (most recent call last):
File "./test.py", line 11, in <module>
output = client.run_command('ls')
File "pssh/pssh_client.py", line 689, in run_command
self.get_output(cmd, output, encoding=encoding)
File "pssh/pssh_client.py", line 778, in get_output
stdout = self.host_clients[host].read_output_buffer(
KeyError: '10.0.2.4'
My research showed that this is due to the fact that ParallelSSHClient stores the SSHClient at key your-server, but the hostname returned by SSHClient is 10.0.2.4.
I'm not so sure how to fix this, thus I'm filing it here.
The text was updated successfully, but these errors were encountered:
Steps to reproduce
Host
entry in yourssh_config
:Expected result
The command is executed on "your-server" at
10.0.2.4
like in the first usage example.Actual result
A
KeyError: '10.0.2.4'
is raised.My research showed that this is due to the fact that
ParallelSSHClient
stores theSSHClient
at keyyour-server
, but thehostname
returned bySSHClient
is10.0.2.4
.I'm not so sure how to fix this, thus I'm filing it here.
The text was updated successfully, but these errors were encountered: