Add error message specifically for chef_server change

This commit is contained in:
Mitchell Hashimoto 2011-07-03 17:29:05 -07:00
parent c27d857387
commit 8bb2403ce0
2 changed files with 7 additions and 1 deletions

View File

@ -129,7 +129,12 @@ module Vagrant
# Each provisioner can validate itself
provisioners.each do |prov|
prov.validate(errors)
# TODO: Remove at some point
if prov.shortcut == :chef_server
errors.add(I18n.t("vagrant.config.vm.provisioner_chef_server_changed"))
else
prov.validate(errors)
end
end
end
end

View File

@ -173,6 +173,7 @@ en:
box_missing: "A box must be specified."
box_not_found: "The box '%{name}' could not be found."
shared_folder_hostpath_missing: "Shared folder host path for '%{name}' doesn't exist: %{path}"
provisioner_chef_server_changed: "The provisioner 'chef_server' is now 'chef_client'"
provisioner_not_found: "The provisioner '%{shortcut}' doesn't exist."
provisioner_invalid_class: "The provisioner '%{shortcut}' must inherit from `Vagrant::Provisioners::Base`."