From 003ebc811ccc1c67981896931aa2ef5a4ffebd46 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 18 Jan 2013 13:29:20 -0800 Subject: [PATCH] VirtualBox uses the new validation middleware --- plugins/providers/virtualbox/action.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/providers/virtualbox/action.rb b/plugins/providers/virtualbox/action.rb index 45bdb1e95..9a0908dd3 100644 --- a/plugins/providers/virtualbox/action.rb +++ b/plugins/providers/virtualbox/action.rb @@ -85,7 +85,7 @@ module VagrantPlugins b2.use Call, DestroyConfirm do |env2, b3| if env2[:result] - b3.use Vagrant::Action::General::Validate + b3.use ConfigValidate b3.use CheckAccessible b3.use EnvSet, :force => true b3.use action_halt @@ -144,7 +144,7 @@ module VagrantPlugins def self.action_provision Vagrant::Action::Builder.new.tap do |b| b.use CheckVirtualbox - b.use Vagrant::Action::General::Validate + b.use ConfigValidate b.use Call, Created do |env1, b2| if !env1[:result] b2.use MessageNotCreated @@ -176,7 +176,7 @@ module VagrantPlugins next end - b2.use Vagrant::Action::General::Validate + b2.use ConfigValidate b2.use action_halt b2.use action_start end @@ -228,7 +228,7 @@ module VagrantPlugins def self.action_start Vagrant::Action::Builder.new.tap do |b| b.use CheckVirtualbox - b.use Vagrant::Action::General::Validate + b.use ConfigValidate b.use Call, IsRunning do |env, b2| # If the VM is running, then our work here is done, exit next if env[:result] @@ -268,7 +268,7 @@ module VagrantPlugins def self.action_up Vagrant::Action::Builder.new.tap do |b| b.use CheckVirtualbox - b.use Vagrant::Action::General::Validate + b.use ConfigValidate b.use Call, Created do |env, b2| # If the VM is NOT created yet, then do the setup steps if !env[:result]