Skip to content

Commit

Permalink
Validation on config.vm.boot_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Sep 21, 2010
1 parent cb69377 commit 4a25aca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/vagrant/config/vm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ def validate(errors)
:path => options[:hostpath])
end
end

errors.add("vagrant.config.vm.boot_mode_invalid") if ![:vrdp, :gui].include?(boot_mode.to_sym)
end
end
end
Expand Down
1 change: 1 addition & 0 deletions templates/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 4a25aca

Please sign in to comment.