From 7a99cd83da26e21921311011fea63dacfd2999ae Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Fri, 22 Jun 2018 19:21:00 +0300 Subject: ehh what can you do --- lib/oxidized/input/ssh.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/oxidized') diff --git a/lib/oxidized/input/ssh.rb b/lib/oxidized/input/ssh.rb index ef92ef6..82335f9 100644 --- a/lib/oxidized/input/ssh.rb +++ b/lib/oxidized/input/ssh.rb @@ -118,9 +118,8 @@ module Oxidized end def get_ssh_opts - port = vars(:ssh_port) || 22 ssh_opts = { - port: port.to_i, + port: (vars(:ssh_port) || 22).to_i, paranoid: secure, keepalive: true, password: @node.auth[:password], timeout: Oxidized.config.timeout, -- cgit v1.2.1