Properly downcase answer for check. Default response to no.

This commit is contained in:
Chris Roberts 2018-07-19 10:31:32 -07:00
parent 0558a2f49e
commit ae14f95124
1 changed files with 3 additions and 2 deletions

View File

@ -942,8 +942,9 @@ module Vagrant
if !Vagrant.auto_install_local_plugins?
answer = nil
until ["y", "n"].include?(answer)
answer = ui.ask(I18n.t("vagrant.plugins.local.request_plugin_install") + ": ")
answer.strip.downcase!
answer = ui.ask(I18n.t("vagrant.plugins.local.request_plugin_install") + " [N]: ")
answer.strip!.downcase!
answer = "n" if answer.to_s.empty?
end
if answer == "n"
raise Errors::PluginMissingLocalError,