Fix validate calls to provisioners

This commit is contained in:
Mitchell Hashimoto 2011-12-11 16:33:50 -08:00
parent 05ae297fd2
commit e5c2f38d7c
2 changed files with 2 additions and 2 deletions

View File

@ -135,7 +135,7 @@ module Vagrant
if prov.shortcut == :chef_server if prov.shortcut == :chef_server
errors.add(I18n.t("vagrant.config.vm.provisioner_chef_server_changed")) errors.add(I18n.t("vagrant.config.vm.provisioner_chef_server_changed"))
else else
prov.validate(errors) prov.validate(env, errors)
end end
end end
end end

View File

@ -48,7 +48,7 @@ module Vagrant
end end
# Pass on validation to the provisioner config # Pass on validation to the provisioner config
config.validate(errors) if config config.validate(env, errors) if config
end end
end end
end end