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
f7a09453
Commit
f7a09453
authored
Aug 01, 2015
by
Chris Bednarski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2538 from fnoeding/amazon-ebs-only-get-password-for-winrm
amazon builder: only fetch password for winrm
parents
611404d5
98b9d22b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
builder/amazon/common/step_get_password.go
builder/amazon/common/step_get_password.go
+3
-4
No files found.
builder/amazon/common/step_get_password.go
View file @
f7a09453
...
...
@@ -26,11 +26,10 @@ type StepGetPassword struct {
func
(
s
*
StepGetPassword
)
Run
(
state
multistep
.
StateBag
)
multistep
.
StepAction
{
ui
:=
state
.
Get
(
"ui"
)
.
(
packer
.
Ui
)
image
:=
state
.
Get
(
"source_image"
)
.
(
*
ec2
.
Image
)
// Skip if we're not
Windows...
if
image
.
Platform
==
nil
||
*
image
.
Platform
!=
"windows
"
{
log
.
Printf
(
"[INFO] Not
Windows
, skipping get password..."
)
// Skip if we're not
using winrm
if
s
.
Comm
.
Type
!=
"winrm
"
{
log
.
Printf
(
"[INFO] Not
using winrm communicator
, skipping get password..."
)
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