summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/ios.rb
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2016-02-03 11:57:42 +0000
committerSaku Ytti <saku@ytti.fi>2016-02-03 11:57:42 +0000
commit3a3d523f7f7c740207dd37f8a0014a5eb714ac4d (patch)
tree206efa5a7c5340a63279d96b58dd913f03b8358f /lib/oxidized/model/ios.rb
parent724a3de7d0e965e7d8b95586814e07f2e6381ebe (diff)
We didn't wait for prompt after enable
This makes the model racy, some might say broken.
Diffstat (limited to 'lib/oxidized/model/ios.rb')
-rw-r--r--lib/oxidized/model/ios.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/model/ios.rb b/lib/oxidized/model/ios.rb
index 6fa3c5c..f31303c 100644
--- a/lib/oxidized/model/ios.rb
+++ b/lib/oxidized/model/ios.rb
@@ -58,7 +58,7 @@ class IOS < Oxidized::Model
if vars :enable
post_login do
send "enable\n"
- send vars(:enable) + "\n"
+ cmd vars(:enable)
end
end
pre_logout 'exit'