diff --git a/builder/googlecompute/step_create_windows_password.go b/builder/googlecompute/step_create_windows_password.go index e131aecff..4c16cb604 100644 --- a/builder/googlecompute/step_create_windows_password.go +++ b/builder/googlecompute/step_create_windows_password.go @@ -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