Validation on `config.vm.boot_mode`

This commit is contained in:
Mitchell Hashimoto 2010-09-21 12:00:45 -06:00
parent cb69377b06
commit 4a25acaad8
2 changed files with 3 additions and 0 deletions

View File

@ -103,6 +103,8 @@ module Vagrant
:path => options[:hostpath])
end
end
errors.add("vagrant.config.vm.boot_mode_invalid") if ![:vrdp, :gui].include?(boot_mode.to_sym)
end
end
end

View File

@ -101,6 +101,7 @@ en:
private_key_missing: "`private_key_path` file must exist: %{path}"
vm:
shared_folder_hostpath_missing: "Shared folder host path for '%{name}' doesn't exist: %{path}"
boot_mode_invalid: "Boot mode must be one of: vrdp or gui"
#-------------------------------------------------------------------------------
# Translations for commands. e.g. `vagrant x`