summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/acos.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/model/acos.rb')
-rw-r--r--lib/oxidized/model/acos.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/oxidized/model/acos.rb b/lib/oxidized/model/acos.rb
index 8ac9165..f06bc93 100644
--- a/lib/oxidized/model/acos.rb
+++ b/lib/oxidized/model/acos.rb
@@ -55,10 +55,10 @@ class ACOS < Oxidized::Model
cfg :telnet, :ssh do
# preferred way to handle additional passwords
- if CFG.vars[:enable] and CFG.vars[:enable] != ''
+ if CFG.vars.enable?
post_login do
send "enable\n"
- send CFG.vars[:enable] + "\n"
+ send CFG.vars.enable + "\n"
end
end
post_login 'terminal length 0'