From 56ac846fc96857ee7f71d3a8ee92390857a9a150 Mon Sep 17 00:00:00 2001 From: rivo nurges Date: Tue, 21 Apr 2015 18:55:43 +0000 Subject: Fix pre_logout in case the configuration is not saved and ScreenOS asks for confirmation --- lib/oxidized/model/screenos.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/oxidized/model') 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 -- cgit v1.2.1