From 689d4dba60de7a1faf555011f9db6fb3aef2fbea Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Fri, 11 Nov 2016 12:02:15 +0200 Subject: expect prompt after entering enable password --- lib/oxidized/model/powerconnect.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oxidized/model/powerconnect.rb b/lib/oxidized/model/powerconnect.rb index f0fa3df..ac36c26 100644 --- a/lib/oxidized/model/powerconnect.rb +++ b/lib/oxidized/model/powerconnect.rb @@ -39,7 +39,7 @@ class PowerConnect < Oxidized::Model if vars :enable post_login do send "enable\n" - send vars(:enable) + "\n" + cmd vars(:enable) end end -- cgit v1.2.1