mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-25 09:35:54 +02:00
lib.ec.ssh.Paramiko: Fix exception logging
The catch-block around Paramiko's connect code throws another exception, fix that. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
d5130bf9ba
commit
3c9ce19deb
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ class Paramiko(Base): # export
|
||||||
allow_agent=True
|
allow_agent=True
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log(ERR, f'Failed to connect to {self.hostname} with key file {path_to_key} ({str(e)})')
|
log(ERR, f'Failed to connect to {self.hostname} ({str(e)})')
|
||||||
raise
|
raise
|
||||||
s = ret.get_transport().open_session()
|
s = ret.get_transport().open_session()
|
||||||
# set up the agent request handler to handle agent requests from the server
|
# set up the agent request handler to handle agent requests from the server
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue