From f1ada371361e1b09af343d97274d532afa76feee Mon Sep 17 00:00:00 2001 From: Tim Green Date: Tue, 20 Aug 2013 14:17:38 -0400 Subject: [PATCH] wrong variable used to calc quorum size --- lib/chef/knife/job_start.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/chef/knife/job_start.rb b/lib/chef/knife/job_start.rb index 5ac0ee7..69db133 100644 --- a/lib/chef/knife/job_start.rb +++ b/lib/chef/knife/job_start.rb @@ -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)