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
e9d916a7
Commit
e9d916a7
authored
Jun 13, 2015
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/amazon: don't print windows password
parent
8f6ecfd9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
builder/amazon/common/step_get_password.go
builder/amazon/common/step_get_password.go
+2
-4
No files found.
builder/amazon/common/step_get_password.go
View file @
e9d916a7
...
@@ -48,9 +48,7 @@ func (s *StepGetPassword) Run(state multistep.StateBag) multistep.StepAction {
...
@@ -48,9 +48,7 @@ func (s *StepGetPassword) Run(state multistep.StateBag) multistep.StepAction {
ui
.
Say
(
"Waiting for auto-generated password for instance..."
)
ui
.
Say
(
"Waiting for auto-generated password for instance..."
)
ui
.
Message
(
ui
.
Message
(
"It is normal for this process to take up to 15 minutes,
\n
"
+
"It is normal for this process to take up to 15 minutes,
\n
"
+
"but it usually takes around 5. Please wait. After the
\n
"
+
"but it usually takes around 5. Please wait."
)
"password is read, it will printed out below. Since it should
\n
"
+
"be a temporary password, this should be a minimal security risk."
)
password
,
err
=
s
.
waitForPassword
(
state
,
cancel
)
password
,
err
=
s
.
waitForPassword
(
state
,
cancel
)
waitDone
<-
true
waitDone
<-
true
}()
}()
...
@@ -68,7 +66,7 @@ WaitLoop:
...
@@ -68,7 +66,7 @@ WaitLoop:
return
multistep
.
ActionHalt
return
multistep
.
ActionHalt
}
}
ui
.
Message
(
fmt
.
Sprintf
(
"
\n
Password retrieved
: %s"
,
password
))
ui
.
Message
(
fmt
.
Sprintf
(
"
\n
Password retrieved
!"
))
s
.
Comm
.
WinRMPassword
=
password
s
.
Comm
.
WinRMPassword
=
password
break
WaitLoop
break
WaitLoop
case
<-
timeout
:
case
<-
timeout
:
...
...
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