builder/googlecompute: Print out WinRM password in debug mode.

This commit is contained in:
Rickard von Essen 2016-09-30 21:17:38 +02:00
parent a4beff5112
commit c0a4067151
No known key found for this signature in database
GPG Key ID: E0C0327388876CBA
1 changed files with 5 additions and 0 deletions

View File

@ -105,6 +105,11 @@ func (s *StepCreateWindowsPassword) Run(state multistep.StateBag) multistep.Step
ui.Message("Created password.")
if s.Debug {
ui.Message(fmt.Sprintf(
"Password (since debug is enabled): %s", data.password))
}
state.Put("winrm_password", data.password)
return multistep.ActionContinue