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