From e5c2f38d7cd00bdac579ffae16beb5a6934a9732 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 11 Dec 2011 16:33:50 -0800 Subject: [PATCH] Fix validate calls to provisioners --- lib/vagrant/config/vm.rb | 2 +- lib/vagrant/config/vm/provisioner.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vagrant/config/vm.rb b/lib/vagrant/config/vm.rb index 25ff2c73c..6e72a8c5b 100644 --- a/lib/vagrant/config/vm.rb +++ b/lib/vagrant/config/vm.rb @@ -135,7 +135,7 @@ module Vagrant if prov.shortcut == :chef_server errors.add(I18n.t("vagrant.config.vm.provisioner_chef_server_changed")) else - prov.validate(errors) + prov.validate(env, errors) end end end diff --git a/lib/vagrant/config/vm/provisioner.rb b/lib/vagrant/config/vm/provisioner.rb index 4052c09c1..7176c9e12 100644 --- a/lib/vagrant/config/vm/provisioner.rb +++ b/lib/vagrant/config/vm/provisioner.rb @@ -48,7 +48,7 @@ module Vagrant end # Pass on validation to the provisioner config - config.validate(errors) if config + config.validate(env, errors) if config end end end