diff options
author | Eric <eric@emj.se> | 2014-09-22 22:08:12 +0200 |
---|---|---|
committer | Eric <eric@emj.se> | 2014-09-22 22:08:12 +0200 |
commit | 2914f792870c9bf5c5b09d41e0f64d86f15403fb (patch) | |
tree | 42e57af1dc596fb000abc9120e6644b2e11978a1 /lib/oxidized/model/powerconnect.rb | |
parent | 4eb1eb2cf9ae0701b6d51a1601b4049e825791d8 (diff) |
Fixed small bug in powerconnect enable code
Diffstat (limited to 'lib/oxidized/model/powerconnect.rb')
-rw-r--r-- | lib/oxidized/model/powerconnect.rb | 6 |
1 files changed, 4 insertions, 2 deletions
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" |