summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/screenos.rb
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2015-04-21 21:58:26 +0300
committerytti <saku@ytti.fi>2015-04-21 21:58:26 +0300
commitedc59e1ba1eeae6e75ae008d104a05ad37daa963 (patch)
tree347014c56cb33c0ab88bbf7a02fccd77199ef986 /lib/oxidized/model/screenos.rb
parent063254e4389fed56b539b4d29d31b1e69509e234 (diff)
parent56ac846fc96857ee7f71d3a8ee92390857a9a150 (diff)
Merge pull request #110 from rixxxx/working-screenos
Fix pre_logout in case the configuration is not saved and ScreenOS asks ...
Diffstat (limited to 'lib/oxidized/model/screenos.rb')
-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