summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/xos.rb
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-02-21 22:05:15 +0200
committerytti <saku@ytti.fi>2016-02-21 22:05:15 +0200
commit01348ad8db7b916f6ce89a6ab2ce32f2046af753 (patch)
tree8a26e9b1c19bc96a773e8c32935adebe28a46947 /lib/oxidized/model/xos.rb
parent0b12bab3015e2968af3f57cee17ce39200d7306e (diff)
parentc6735a3ba7926f931cb6f31da41c555680ac1b70 (diff)
Merge pull request #333 from roedie/fix-telnet
Fix telnet 'wait for prompt' bug
Diffstat (limited to 'lib/oxidized/model/xos.rb')
-rw-r--r--lib/oxidized/model/xos.rb6
1 files changed, 4 insertions, 2 deletions
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