kernel/v2: make provisioner name show up on invalid [GH-5902]

This commit is contained in:
Mitchell Hashimoto 2015-07-08 17:50:36 -06:00
parent 9dd87b289e
commit 45a5bc3bd9
1 changed files with 3 additions and 1 deletions

View File

@ -702,8 +702,10 @@ module VagrantPlugins
# Validate provisioners
@provisioners.each do |vm_provisioner|
if vm_provisioner.invalid?
name = vm_provisioner.name.to_s
name = vm_provisioner.type.to_s if name.empty?
errors["vm"] << I18n.t("vagrant.config.vm.provisioner_not_found",
name: vm_provisioner.name)
name: name)
next
end