From c6735a3ba7926f931cb6f31da41c555680ac1b70 Mon Sep 17 00:00:00 2001 From: roedie Date: Sun, 21 Feb 2016 20:18:27 +0100 Subject: Fix telnet 'wait for prompt' bug --- lib/oxidized/model/xos.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/oxidized/model/xos.rb') diff --git a/lib/oxidized/model/xos.rb b/lib/oxidized/model/xos.rb index de8ec39..6f1323f 100644 --- a/lib/oxidized/model/xos.rb +++ b/lib/oxidized/model/xos.rb @@ -36,8 +36,10 @@ class XOS < Oxidized::Model cfg :telnet, :ssh do post_login 'disable clipaging' - pre_logout 'exit' - pre_logout 'n' + pre_logout do + send "exit\n" + send "n\n" + end end end -- cgit v1.2.1