From 4f89bdb947956bdf1ba4044d8d5108e0ff88d28b Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 15 Feb 2014 16:37:27 -0800 Subject: [PATCH] core: disable parallelization if only one action --- lib/vagrant/batch_action.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/vagrant/batch_action.rb b/lib/vagrant/batch_action.rb index 00957dac8..07b50b325 100644 --- a/lib/vagrant/batch_action.rb +++ b/lib/vagrant/batch_action.rb @@ -47,6 +47,11 @@ module Vagrant end end + if par && @actions.length <= 1 + @logger.info("Disabling parallelization because only executing one action") + par = false + end + @logger.info("Batch action will parallelize: #{par.inspect}") threads = []