From 2914f792870c9bf5c5b09d41e0f64d86f15403fb Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 22 Sep 2014 22:08:12 +0200 Subject: Fixed small bug in powerconnect enable code --- lib/oxidized/model/powerconnect.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/oxidized') diff --git a/lib/oxidized/model/powerconnect.rb b/lib/oxidized/model/powerconnect.rb index 1d0352e..8c677b3 100644 --- a/lib/oxidized/model/powerconnect.rb +++ b/lib/oxidized/model/powerconnect.rb @@ -31,8 +31,10 @@ class PowerConnect < Oxidized::Model cfg :telnet, :ssh do if vars :enable - send "enable\n" - send vars(:enable) + "\n" + post_login do + send "enable\n" + send vars(:enable) + "\n" + end end post_login "terminal length 0" -- cgit v1.2.1