diff options
author | ytti <saku@ytti.fi> | 2018-04-27 14:35:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-27 14:35:34 +0300 |
commit | eedaeff5b159a3e2dc0f2020000d2b39ccfbed2f (patch) | |
tree | 655fe8f951b06aaa94a9c9b111a6f0cbcc475915 /lib/oxidized/worker.rb | |
parent | 1311573a1adff6edf2c0b3cfdb05ca83d6c46e73 (diff) | |
parent | 90e1c91ae52ecbcc5b733f166e110faf9b698687 (diff) |
Merge pull request #1175 from laf/ssh-auth-methods
Added support for setting ssh auth methods
Diffstat (limited to 'lib/oxidized/worker.rb')
-rw-r--r-- | lib/oxidized/worker.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/oxidized/worker.rb b/lib/oxidized/worker.rb index 7eaa888..692b060 100644 --- a/lib/oxidized/worker.rb +++ b/lib/oxidized/worker.rb @@ -80,7 +80,11 @@ module Oxidized private def is_cycle_finished? - @jobs_done > 0 && @jobs_done % @nodes.count == 0 + if @jobs_done > @nodes.count + true + else + @jobs_done > 0 && @jobs_done % @nodes.count == 0 + end end def run_done_hook |