Add dependency provisioner name to error message

This commit is contained in:
Brian Cain 2019-08-28 14:30:32 -07:00
parent c1f0bd638d
commit 8c39d9bfed
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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: