diff options
author | Saku Ytti <saku@ytti.fi> | 2016-02-03 11:57:42 +0000 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2016-02-03 11:57:42 +0000 |
commit | 3a3d523f7f7c740207dd37f8a0014a5eb714ac4d (patch) | |
tree | 206efa5a7c5340a63279d96b58dd913f03b8358f /lib/oxidized/model | |
parent | 724a3de7d0e965e7d8b95586814e07f2e6381ebe (diff) |
We didn't wait for prompt after enable
This makes the model racy, some might say broken.
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r-- | lib/oxidized/model/ios.rb | 2 |
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' |