summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/oxidized/input/ssh.rb3
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,