From 60b350157c87a82a11bd55776e96fb27e1c4241f Mon Sep 17 00:00:00 2001 From: StefanScherer Date: Tue, 15 Apr 2014 12:12:43 +0200 Subject: [PATCH 1/3] call InventoryCheck always in action_up to get vdc --- lib/vagrant-vcloud/action.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-vcloud/action.rb b/lib/vagrant-vcloud/action.rb index 313dcfc..176c4e0 100644 --- a/lib/vagrant-vcloud/action.rb +++ b/lib/vagrant-vcloud/action.rb @@ -191,9 +191,9 @@ def self.action_up b2.use HandleBox unless env[:result] end b.use ConnectVCloud + b.use InventoryCheck b.use Call, IsCreated do |env, b2| unless env[:result] - b2.use InventoryCheck b2.use BuildVApp end end From 6399a0b882c8178d0e63038794a1c3ecf771b5c5 Mon Sep 17 00:00:00 2001 From: StefanScherer Date: Tue, 15 Apr 2014 12:19:21 +0200 Subject: [PATCH 2/3] reverted change in develop branch, use PR branch instead --- lib/vagrant-vcloud/action.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-vcloud/action.rb b/lib/vagrant-vcloud/action.rb index 176c4e0..313dcfc 100644 --- a/lib/vagrant-vcloud/action.rb +++ b/lib/vagrant-vcloud/action.rb @@ -191,9 +191,9 @@ def self.action_up b2.use HandleBox unless env[:result] end b.use ConnectVCloud - b.use InventoryCheck b.use Call, IsCreated do |env, b2| unless env[:result] + b2.use InventoryCheck b2.use BuildVApp end end From 496c3842e2d96805c3baf3ccf5e9283554f3e4a0 Mon Sep 17 00:00:00 2001 From: Stefan Scherer Date: Fri, 9 May 2014 08:59:12 +0200 Subject: [PATCH 3/3] fixed typo in action_start, b3 -> b2 --- lib/vagrant-vcloud/action.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-vcloud/action.rb b/lib/vagrant-vcloud/action.rb index c30949b..1e98d3e 100644 --- a/lib/vagrant-vcloud/action.rb +++ b/lib/vagrant-vcloud/action.rb @@ -56,7 +56,7 @@ def self.action_start end b.use Call, IsPaused do |env, b2| if env[:result] - b3.use Resume + b2.use Resume next end end