Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
0a2e54fe
Commit
0a2e54fe
authored
Jun 29, 2015
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/amazon: output WinRM password for debug mode [GH-2336]
parent
1aef60ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
builder/amazon/common/step_get_password.go
builder/amazon/common/step_get_password.go
+8
-0
No files found.
builder/amazon/common/step_get_password.go
View file @
0a2e54fe
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment