core: don't prefix ask statements

This commit is contained in:
Mitchell Hashimoto 2014-01-23 22:19:04 -08:00
parent b71cde6b99
commit 7b8002eba7
1 changed files with 3 additions and 2 deletions

View File

@ -115,11 +115,12 @@ module Vagrant
# We have more than one provider, ask the user what they want
choice = env[:ui].ask(I18n.t(
"vagrant.box_add_choose_provider",
options: options) + " ")
options: options) + " ", prefix: false)
choice = choice.to_i if choice
while !choice || choice <= 0 || choice > providers.length
choice = env[:ui].ask(I18n.t(
"vagrant.box_add_choose_provider_again") + " ")
"vagrant.box_add_choose_provider_again") + " ",
prefix: false)
choice = choice.to_i if choice
end