From e7c61a52cc739267a02cd1471ee84bfa399582fa Mon Sep 17 00:00:00 2001 From: Andrew Poland Date: Mon, 5 May 2014 13:30:30 -0400 Subject: [PATCH] Keep waiting on task if it is in 'queued' or 'preRunning' status --- lib/vagrant-vcloud/driver/version_5_1.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-vcloud/driver/version_5_1.rb b/lib/vagrant-vcloud/driver/version_5_1.rb index e1f243a..60ede9a 100644 --- a/lib/vagrant-vcloud/driver/version_5_1.rb +++ b/lib/vagrant-vcloud/driver/version_5_1.rb @@ -1700,7 +1700,7 @@ def wait_task_completion(task_id) @logger.debug( "Evaluating taskid: #{task_id}, current status #{task[:status]}" ) - break if task[:status] != 'running' + break if !['queued','preRunning','running'].include?(task[:status]) sleep 5 end