builder/amazon: don't print windows password

This commit is contained in:
Mitchell Hashimoto 2015-06-13 23:14:48 -07:00
parent 8f6ecfd9e3
commit e9d916a7bc
1 changed files with 2 additions and 4 deletions

View File

@ -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: