From f2fb873d0d99650bc538e49ca46de3acc6e6b544 Mon Sep 17 00:00:00 2001 From: Andreas Rammhold Date: Fri, 19 Aug 2016 14:13:50 +0200 Subject: Disconnect input when expected prompt wasn't found --- lib/oxidized/input/cli.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/oxidized') 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 -- cgit v1.2.1