summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/dnos.rb
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2016-11-01 02:04:31 +0200
committerSaku Ytti <saku@ytti.fi>2016-11-01 02:04:31 +0200
commite5dc1dedf976a12c278f68c284c976ed462cdcb4 (patch)
tree1918ae82fe510572b0ad663fcfad25132f25bfbb /lib/oxidized/model/dnos.rb
parentf844305d72e52efcf3511eb5bfb30849d8c60617 (diff)
expect prompt after sending enable password
Diffstat (limited to 'lib/oxidized/model/dnos.rb')
-rw-r--r--lib/oxidized/model/dnos.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/model/dnos.rb b/lib/oxidized/model/dnos.rb
index a6cc05f..a44630e 100644
--- a/lib/oxidized/model/dnos.rb
+++ b/lib/oxidized/model/dnos.rb
@@ -36,7 +36,7 @@ class DNOS < Oxidized::Model
if vars :enable
post_login do
send "enable\n"
- send vars(:enable) + "\n"
+ cmd vars(:enable)
end
end
post_login 'terminal length 0'