Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve error message for ssh connection exception #2975

Closed
ltalirz opened this issue Jun 7, 2019 · 0 comments · Fixed by #3536
Closed

improve error message for ssh connection exception #2975

ltalirz opened this issue Jun 7, 2019 · 0 comments · Fixed by #3536
Milestone

Comments

@ltalirz
Copy link
Member

ltalirz commented Jun 7, 2019

The exception for connecting with SSH currently has all the parameters passed to paramiko, except for the host (which is kind of important):

try:
    self._client.connect(self._machine, **connection_arguments)
except Exception as exc:
    self.logger.error("Error connecting through SSH: [{}] {}, "
                      "connect_args were: {}".format(exc.__class__.__name__, exc, self._connect_args))
    raise

Let's include the host as well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants