From bb0ff49ad46be5b09dfb6ebde3995bf3a0efa32b Mon Sep 17 00:00:00 2001 From: Saku Ytti Date: Fri, 22 Jun 2018 19:45:28 +0300 Subject: rubycop fixes --- lib/oxidized/input/ssh.rb | 3 +-- lib/oxidized/worker.rb | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/oxidized') 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 -- cgit v1.2.1