diff options
author | ytti <saku@ytti.fi> | 2016-08-19 15:42:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-19 15:42:23 +0300 |
commit | 8ef086796a22914dcc52febb4dfc84df56e05438 (patch) | |
tree | 27657c05aa7cc5a7b61e9e85fe8f8c351dc1e0de /lib/oxidized/input | |
parent | 3e504151fa859cc98b8664214ca7f8e1b94d176e (diff) | |
parent | f2fb873d0d99650bc538e49ca46de3acc6e6b544 (diff) |
Merge pull request #533 from andir/disconnect_unexpected_prompt
Disconnect input when expected prompt wasn't found
Diffstat (limited to 'lib/oxidized/input')
-rw-r--r-- | lib/oxidized/input/cli.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/oxidized/input/cli.rb b/lib/oxidized/input/cli.rb index fc7f426..660e173 100644 --- a/lib/oxidized/input/cli.rb +++ b/lib/oxidized/input/cli.rb @@ -14,6 +14,9 @@ module Oxidized d = node.model.get disconnect d + rescue PromptUndetect + disconnect + raise end def connect_cli |