Merge pull request #5637 from paul-krohn/config-not-found-error
Provide path to missing file.
This commit is contained in:
commit
dadee77730
|
@ -114,14 +114,14 @@ module VagrantPlugins
|
|||
if @minion_config
|
||||
expanded = Pathname.new(@minion_config).expand_path(machine.env.root_path)
|
||||
if !expanded.file?
|
||||
errors << I18n.t("vagrant.provisioners.salt.minion_config_nonexist")
|
||||
errors << I18n.t("vagrant.provisioners.salt.minion_config_nonexist", missing_config_file: expanded)
|
||||
end
|
||||
end
|
||||
|
||||
if @master_config
|
||||
expanded = Pathname.new(@master_config).expand_path(machine.env.root_path)
|
||||
if !expanded.file?
|
||||
errors << I18n.t("vagrant.provisioners.salt.master_config_nonexist")
|
||||
errors << I18n.t("vagrant.provisioners.salt.master_config_nonexist", missing_config_file: expanded)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1908,9 +1908,9 @@ en:
|
|||
|
||||
salt:
|
||||
minion_config_nonexist: |-
|
||||
The specified minion_config file could not be found.
|
||||
The specified minion_config '%{missing_config_file}' file could not be found.
|
||||
master_config_nonexist: |-
|
||||
The specified master_config file could not be found.
|
||||
The specified master_config '%{missing_config_file}' file could not be found.
|
||||
grains_config_nonexist: |-
|
||||
The specified grains_config file could not be found.
|
||||
missing_key: |-
|
||||
|
|
Loading…
Reference in New Issue