Skip to content

Commit

Permalink
wrong variable used to calc quorum size
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Green committed Aug 20, 2013
1 parent dc21355 commit f1ada37
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 f1ada37

Please sign in to comment.