diff options
author | Saku Ytti <saku@ytti.fi> | 2016-01-25 13:17:09 +0200 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2016-01-25 13:17:09 +0200 |
commit | c39e8ebb2e19d718d039dc0c659d76b4469a750f (patch) | |
tree | 9a0d803daaecf61c130b9e2f9c6127c8028ef379 /lib/oxidized/input/cli.rb | |
parent | 3356902f975712e5b6352edb9849c98952fd1dea (diff) |
SSH does not prompt for username/password
Some devices, like Cisco WLC do not authenticate using SSH (ssh is
noauth) and actually prompt for auth via shell.
CiscoSMB is not one of those kits.
We probably should do sepearate bug for the error messages this caused.
```
begin
@username ? shell_login : expect(@node.prompt)
rescue Timeout::Error
raise PromptUndetect, [ @output, 'not matching configured prompt', @node.prompt ].join(' ')
end
```
Here Timeout:Error is not raised by ```expect(@node-prompt)``` it is raised by
```shell-login```, which is triggered due to @username prompt set.
Potential fixes
1. change the error to more generic one, covering both cases
2. add rescue in 'def shell_login' for Timeout::Error and report it there
Diffstat (limited to 'lib/oxidized/input/cli.rb')
0 files changed, 0 insertions, 0 deletions