diff options
author | rivo nurges <rivo@surfar.ee> | 2015-04-21 18:55:43 +0000 |
---|---|---|
committer | rivo nurges <rivo@surfar.ee> | 2015-04-21 18:55:43 +0000 |
commit | 56ac846fc96857ee7f71d3a8ee92390857a9a150 (patch) | |
tree | 347014c56cb33c0ab88bbf7a02fccd77199ef986 /lib/oxidized | |
parent | 57257c93db875d9874fdf776e5fae7629ce5c7cd (diff) |
Fix pre_logout in case the configuration is not saved and ScreenOS asks for confirmation
Diffstat (limited to 'lib/oxidized')
-rw-r--r-- | lib/oxidized/model/screenos.rb | 5 |
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 |