diff options
author | Saku Ytti <saku@ytti.fi> | 2018-06-22 19:45:28 +0300 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2018-06-22 19:45:28 +0300 |
commit | bb0ff49ad46be5b09dfb6ebde3995bf3a0efa32b (patch) | |
tree | 7d058dd046a8409571b797e1e649acff6698e5af /lib | |
parent | d83eb5dd21c259bb2f81aa2cb1a92ed00a80c9a7 (diff) |
rubycop fixes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oxidized/input/ssh.rb | 3 | ||||
-rw-r--r-- | lib/oxidized/worker.rb | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/lib/oxidized/input/ssh.rb b/lib/oxidized/input/ssh.rb index 01f7063..ccc3d1c 100644 --- a/lib/oxidized/input/ssh.rb +++ b/lib/oxidized/input/ssh.rb @@ -122,8 +122,7 @@ module Oxidized port: (vars(:ssh_port) || 22).to_i, paranoid: secure, keepalive: true, - password: @node.auth[:password], timeout: Oxidized.config.timeout, - number_of_password_prompts: 0 + password: @node.auth[:password], timeout: Oxidized.config.timeout, number_of_password_prompts: 0 } auth_methods = vars(:auth_methods) || %w(none publickey password) diff --git a/lib/oxidized/worker.rb b/lib/oxidized/worker.rb index 06e8689..4b9614b 100644 --- a/lib/oxidized/worker.rb +++ b/lib/oxidized/worker.rb @@ -36,7 +36,6 @@ module Oxidized Oxidized.logger.debug("lib/oxidized/worker.rb: #{@jobs.size} jobs running in parallel") unless @jobs.empty? end - def process job node = job.node node.last = job |