From e9d916a7bcd3a99ee3161efc1ac69f1c95255634 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 13 Jun 2015 23:14:48 -0700 Subject: [PATCH] builder/amazon: don't print windows password --- builder/amazon/common/step_get_password.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/builder/amazon/common/step_get_password.go b/builder/amazon/common/step_get_password.go index 37cfe3af6..ab51f4394 100644 --- a/builder/amazon/common/step_get_password.go +++ b/builder/amazon/common/step_get_password.go @@ -48,9 +48,7 @@ func (s *StepGetPassword) Run(state multistep.StateBag) multistep.StepAction { ui.Say("Waiting for auto-generated password for instance...") ui.Message( "It is normal for this process to take up to 15 minutes,\n" + - "but it usually takes around 5. Please wait. After the\n" + - "password is read, it will printed out below. Since it should\n" + - "be a temporary password, this should be a minimal security risk.") + "but it usually takes around 5. Please wait.") password, err = s.waitForPassword(state, cancel) waitDone <- true }() @@ -68,7 +66,7 @@ WaitLoop: return multistep.ActionHalt } - ui.Message(fmt.Sprintf(" \nPassword retrieved: %s", password)) + ui.Message(fmt.Sprintf(" \nPassword retrieved!")) s.Comm.WinRMPassword = password break WaitLoop case <-timeout: