From 8bdb5e797d2b755e0ea0da597129f5d18daf42ae Mon Sep 17 00:00:00 2001 From: sophia Date: Tue, 30 Aug 2022 15:18:21 -0500 Subject: [PATCH] Pass in echo/secret ui input setting --- lib/vagrant/ui/remote.rb | 1 + plugins/commands/serve/client/terminal.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/ui/remote.rb b/lib/vagrant/ui/remote.rb index 398ad6453..0884745a3 100644 --- a/lib/vagrant/ui/remote.rb +++ b/lib/vagrant/ui/remote.rb @@ -29,6 +29,7 @@ module Vagrant def ask(message, **opts) opts[:style] ||= :detail + opts[:echo] = true if !opts.key?(:echo) @client.input(message.gsub("%", "%%"), **opts) end diff --git a/plugins/commands/serve/client/terminal.rb b/plugins/commands/serve/client/terminal.rb index 8873bdb44..0449f1cec 100644 --- a/plugins/commands/serve/client/terminal.rb +++ b/plugins/commands/serve/client/terminal.rb @@ -33,7 +33,7 @@ module VagrantPlugins input: SDK::TerminalUI::Event::Input.new( prompt: prompt, style: STYLE[:info], - secret: !!opts[:echo] + secret: !opts[:echo] ) ), ].each