Commit 0a2e54fe authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/amazon: output WinRM password for debug mode [GH-2336]

parent 1aef60ff
......@@ -19,6 +19,7 @@ import (
// StepGetPassword reads the password from a Windows server and sets it
// on the WinRM config.
type StepGetPassword struct {
Debug bool
Comm *communicator.Config
Timeout time.Duration
}
......@@ -85,6 +86,13 @@ WaitLoop:
}
}
}
// In debug-mode, we output the password
if s.Debug {
ui.Message(fmt.Sprintf(
"Password (since debug is enabled): %s", s.Comm.WinRMPassword))
}
return multistep.ActionContinue
}
......
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