diff options
author | sersut <serdar@opscode.com> | 2014-02-03 14:20:39 -0800 |
---|---|---|
committer | sersut <serdar@opscode.com> | 2014-02-03 14:20:39 -0800 |
commit | 6203b1a481ddb5767e44d08e8cf38f5458f46e83 (patch) | |
tree | 2ef0b0b2684ff3e4ebf08e0b37408e32e4f82825 | |
parent | 4312ebe6e4d651f248d215519acecf93a19e2d8a (diff) | |
download | chef-6203b1a481ddb5767e44d08e8cf38f5458f46e83.tar.gz |
Make sure --concurrency 1 works while uploading multiple cookbooks.
-rw-r--r-- | lib/chef/cookbook_uploader.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/cookbook_uploader.rb b/lib/chef/cookbook_uploader.rb index 2ae4703f01..6524eed3e5 100644 --- a/lib/chef/cookbook_uploader.rb +++ b/lib/chef/cookbook_uploader.rb @@ -20,7 +20,7 @@ class Chef def self.setup_worker_threads(concurrency=10) @worker_threads ||= begin work_queue - (1...concurrency).map do + (1..concurrency).map do Thread.new do loop do work_queue.pop.call |