Skip to content

Commit

Permalink
Merge pull request #15 from timops/quorum-fix
Browse files Browse the repository at this point in the history
wrong variable used to calc quorum size
  • Loading branch information
timops committed Aug 20, 2013
2 parents dc21355 + f1ada37 commit a676a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/chef/knife/job_start.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def run
job_json = {
'command' => name_args[0],
'nodes' => @node_names,
'quorum' => get_quorum(config[:quorum], nodes.length)
'quorum' => get_quorum(config[:quorum], @node_names.length)
}
job_json['run_timeout'] = config[:run_timeout].to_i if config[:run_timeout]
result = rest.post_rest('pushy/jobs', job_json)
Expand Down

0 comments on commit a676a17

Please sign in to comment.