summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2016-11-11 12:02:15 +0200
committerSaku Ytti <saku@ytti.fi>2016-11-11 12:02:15 +0200
commit689d4dba60de7a1faf555011f9db6fb3aef2fbea (patch)
treefa2c7112f18d00fb28f9fea42713dce24f7da584
parent212214592b59c184cfed451e9529e9c7bb366b99 (diff)
expect prompt after entering enable password
-rw-r--r--lib/oxidized/model/powerconnect.rb2
1 files changed, 1 insertions, 1 deletions
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