Add error messages to localization file for salt provisioner

This commit is contained in:
Marc Meszaros 2013-12-27 22:37:54 -05:00
parent e3734a7a46
commit 194d7d11cd
2 changed files with 9 additions and 3 deletions

View File

@ -91,15 +91,15 @@ module VagrantPlugins
if @master_key && @master_pub
if !@minion_key && !@minion_pub
errors << I18n.t("salt.missing_key")
errors << I18n.t("vagrant.provisioners.salt.missing_key")
end
end
if @install_master && !@no_minion && !@seed_master && @run_highstate
errors << I18n.t("salt.must_accept_keys")
errors << I18n.t("vagrant.provisioners.salt.must_accept_keys")
end
return {"salt" => errors}
return {"salt provisioner" => errors}
end

View File

@ -1377,3 +1377,9 @@ en:
docker:
not_running: "Docker is not running on the guest VM."
install_failed: "Docker installation failed."
salt:
missing_key: |-
You must include both public and private keys.
must_accept_keys: |-
You must accept keys when running highstate with master!