diff options
author | Saku Ytti <saku@ytti.fi> | 2018-06-22 19:21:00 +0300 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2018-06-22 19:21:00 +0300 |
commit | 7a99cd83da26e21921311011fea63dacfd2999ae (patch) | |
tree | 8e209bdceb34385373f11796178b8706ba7e55c9 | |
parent | c150be119d4869c74b790b6f7d920a7c8f72ae66 (diff) |
ehh what can you do
-rw-r--r-- | lib/oxidized/input/ssh.rb | 3 |
1 files changed, 1 insertions, 2 deletions
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, |