VirtualBox uses the new validation middleware

This commit is contained in:
Mitchell Hashimoto 2013-01-18 13:29:20 -08:00
parent 7f55d5eac8
commit 003ebc811c
1 changed files with 5 additions and 5 deletions

View File

@ -85,7 +85,7 @@ module VagrantPlugins
b2.use Call, DestroyConfirm do |env2, b3| b2.use Call, DestroyConfirm do |env2, b3|
if env2[:result] if env2[:result]
b3.use Vagrant::Action::General::Validate b3.use ConfigValidate
b3.use CheckAccessible b3.use CheckAccessible
b3.use EnvSet, :force => true b3.use EnvSet, :force => true
b3.use action_halt b3.use action_halt
@ -144,7 +144,7 @@ module VagrantPlugins
def self.action_provision def self.action_provision
Vagrant::Action::Builder.new.tap do |b| Vagrant::Action::Builder.new.tap do |b|
b.use CheckVirtualbox b.use CheckVirtualbox
b.use Vagrant::Action::General::Validate b.use ConfigValidate
b.use Call, Created do |env1, b2| b.use Call, Created do |env1, b2|
if !env1[:result] if !env1[:result]
b2.use MessageNotCreated b2.use MessageNotCreated
@ -176,7 +176,7 @@ module VagrantPlugins
next next
end end
b2.use Vagrant::Action::General::Validate b2.use ConfigValidate
b2.use action_halt b2.use action_halt
b2.use action_start b2.use action_start
end end
@ -228,7 +228,7 @@ module VagrantPlugins
def self.action_start def self.action_start
Vagrant::Action::Builder.new.tap do |b| Vagrant::Action::Builder.new.tap do |b|
b.use CheckVirtualbox b.use CheckVirtualbox
b.use Vagrant::Action::General::Validate b.use ConfigValidate
b.use Call, IsRunning do |env, b2| b.use Call, IsRunning do |env, b2|
# If the VM is running, then our work here is done, exit # If the VM is running, then our work here is done, exit
next if env[:result] next if env[:result]
@ -268,7 +268,7 @@ module VagrantPlugins
def self.action_up def self.action_up
Vagrant::Action::Builder.new.tap do |b| Vagrant::Action::Builder.new.tap do |b|
b.use CheckVirtualbox b.use CheckVirtualbox
b.use Vagrant::Action::General::Validate b.use ConfigValidate
b.use Call, Created do |env, b2| b.use Call, Created do |env, b2|
# If the VM is NOT created yet, then do the setup steps # If the VM is NOT created yet, then do the setup steps
if !env[:result] if !env[:result]