diff options
author | Saku Ytti <saku@ytti.fi> | 2015-09-06 11:01:41 +0300 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2015-09-06 11:01:41 +0300 |
commit | 15d1452f5f78fde4817b6b58963bf720ca1cbd01 (patch) | |
tree | 7d7be725c3059f2e7f5c144085a115fb02b9d7a7 /lib/oxidized/input/telnet.rb | |
parent | 9844a72c0487d33c38d435363998dcab27373be6 (diff) |
oops, presedence issue
Diffstat (limited to 'lib/oxidized/input/telnet.rb')
-rw-r--r-- | lib/oxidized/input/telnet.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oxidized/input/telnet.rb b/lib/oxidized/input/telnet.rb index 52d6a53..d305fcd 100644 --- a/lib/oxidized/input/telnet.rb +++ b/lib/oxidized/input/telnet.rb @@ -10,7 +10,7 @@ module Oxidized @node = node @timeout = CFG.timeout @node.model.cfg['telnet'].each { |cb| instance_exec(&cb) } - port = vars(:telnet_port) or 23 + port = vars(:telnet_port) || 23 opt = { 'Host' => @node.ip, 'Port' => port.to_i, |