When you can't find the salt minion or master config, say what you were looking for.
This commit is contained in:
parent
bdb945cd1b
commit
c7f32e6159
|
@ -95,14 +95,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