diff --git a/plugins/kernel_v2/config/vm_provisioner.rb b/plugins/kernel_v2/config/vm_provisioner.rb index 309281d27..9ba6f639d 100644 --- a/plugins/kernel_v2/config/vm_provisioner.rb +++ b/plugins/kernel_v2/config/vm_provisioner.rb @@ -125,7 +125,8 @@ module VagrantPlugins errors << I18n.t("vagrant.provisioners.base.missing_provisioner_name", name: @before, machine_name: machine.name, - action: "before") + action: "before", + provisioner_name: @name) end end end @@ -142,7 +143,8 @@ module VagrantPlugins errors << I18n.t("vagrant.provisioners.base.missing_provisioner_name", name: @after, machine_name: machine.name, - action: "after") + action: "after", + provisioner_name: @name) end end end diff --git a/templates/locales/en.yml b/templates/locales/en.yml index 3590cdb9b..a28d86634 100644 --- a/templates/locales/en.yml +++ b/templates/locales/en.yml @@ -2490,7 +2490,7 @@ en: invalid_alias_value: |- Provisioner option `%{opt}` is not set as a valid type. Must be a string, or one of the alias shortcuts: %{alias} missing_provisioner_name: |- - Could not find provisioner name `%{name}` defined for machine `%{machine_name}` to run provisioner `%{action}`. + Could not find provisioner name `%{name}` defined for machine `%{machine_name}` to run provisioner `%{action}` "%{provisioner_name}". wrong_type: |- Provisioner option `%{opt}` is not set as a valid type. Must be a string. chef: