Commit e9d916a7 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/amazon: don't print windows password

parent 8f6ecfd9
...@@ -48,9 +48,7 @@ func (s *StepGetPassword) Run(state multistep.StateBag) multistep.StepAction { ...@@ -48,9 +48,7 @@ func (s *StepGetPassword) Run(state multistep.StateBag) multistep.StepAction {
ui.Say("Waiting for auto-generated password for instance...") ui.Say("Waiting for auto-generated password for instance...")
ui.Message( ui.Message(
"It is normal for this process to take up to 15 minutes,\n" + "It is normal for this process to take up to 15 minutes,\n" +
"but it usually takes around 5. Please wait. After the\n" + "but it usually takes around 5. Please wait.")
"password is read, it will printed out below. Since it should\n" +
"be a temporary password, this should be a minimal security risk.")
password, err = s.waitForPassword(state, cancel) password, err = s.waitForPassword(state, cancel)
waitDone <- true waitDone <- true
}() }()
...@@ -68,7 +66,7 @@ WaitLoop: ...@@ -68,7 +66,7 @@ WaitLoop:
return multistep.ActionHalt return multistep.ActionHalt
} }
ui.Message(fmt.Sprintf(" \nPassword retrieved: %s", password)) ui.Message(fmt.Sprintf(" \nPassword retrieved!"))
s.Comm.WinRMPassword = password s.Comm.WinRMPassword = password
break WaitLoop break WaitLoop
case <-timeout: case <-timeout:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment