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

HostOutput has empty host when authentication fails #297

Closed
whuizhe opened this issue May 19, 2021 · 3 comments
Closed

HostOutput has empty host when authentication fails #297

whuizhe opened this issue May 19, 2021 · 3 comments

Comments

@whuizhe
Copy link

whuizhe commented May 19, 2021

Here's my output
host=None
exit_code=None
channel=None
exception=('Authentication error while connecting to %s:%s - %s', '10.201.64.106', 22, AuthenticationError('No authentication methods succeeded'))
encoding=utf-8
read_timeout=None

When the authentication fails, the host is empty, this time do not know is that ip failure

@pkittenis
Copy link
Member

Hi there,

Thanks for the interest. Host is available on the exception as the first argument, host_out.exception.args[0] as can be seen above.

Should have it as host_out.host as well, yes.

@pkittenis pkittenis changed the title The host is empty when authentication fails HostOutput has empty host when authentication fails May 24, 2021
@wfleurant
Copy link

using jumphost / proxy to unreachable target host (host_out.exception):
('Proxy authentication failed. Exception from tunnel client: %s', SocketDisconnectError())

@pkittenis
Copy link
Member

Resolved by #323

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

No branches or pull requests

3 participants