summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrivo nurges <rivo@surfar.ee>2015-04-21 18:55:43 +0000
committerrivo nurges <rivo@surfar.ee>2015-04-21 18:55:43 +0000
commit56ac846fc96857ee7f71d3a8ee92390857a9a150 (patch)
tree347014c56cb33c0ab88bbf7a02fccd77199ef986
parent57257c93db875d9874fdf776e5fae7629ce5c7cd (diff)
Fix pre_logout in case the configuration is not saved and ScreenOS asks for confirmation
-rw-r--r--lib/oxidized/model/screenos.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/oxidized/model/screenos.rb b/lib/oxidized/model/screenos.rb
index 57c7c2f..907097a 100644
--- a/lib/oxidized/model/screenos.rb
+++ b/lib/oxidized/model/screenos.rb
@@ -33,7 +33,10 @@ class ScreenOS < Oxidized::Model
cfg :telnet, :ssh do
post_login 'set console page 0'
- pre_logout 'exit'
+ pre_logout do
+ send "exit\n"
+ send "n"
+ end
end
end