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
c29d754f
Commit
c29d754f
authored
Jun 08, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/vmware: break out the proper loop
parent
ccfb4664
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
builder/amazonebs/builder_test.go
builder/amazonebs/builder_test.go
+5
-5
builder/vmware/step_wait_for_ssh.go
builder/vmware/step_wait_for_ssh.go
+2
-1
No files found.
builder/amazonebs/builder_test.go
View file @
c29d754f
...
...
@@ -7,12 +7,12 @@ import (
func
testConfig
()
map
[
string
]
interface
{}
{
return
map
[
string
]
interface
{}{
"access_key"
:
"foo"
,
"secret_key"
:
"bar"
,
"source_ami"
:
"foo"
,
"access_key"
:
"foo"
,
"secret_key"
:
"bar"
,
"source_ami"
:
"foo"
,
"instance_type"
:
"foo"
,
"region"
:
"us-east-1"
,
"ssh_username"
:
"root"
,
"region"
:
"us-east-1"
,
"ssh_username"
:
"root"
,
}
}
...
...
builder/vmware/step_wait_for_ssh.go
View file @
c29d754f
...
...
@@ -45,6 +45,7 @@ func (s *stepWaitForSSH) Run(state map[string]interface{}) multistep.StepAction
log
.
Printf
(
"Waiting for SSH, up to timeout: %s"
,
config
.
SSHWaitTimeout
.
String
())
timeout
:=
time
.
After
(
config
.
SSHWaitTimeout
)
WaitLoop
:
for
{
// Wait for either SSH to become available, a timeout to occur,
// or an interrupt to come through.
...
...
@@ -56,7 +57,7 @@ func (s *stepWaitForSSH) Run(state map[string]interface{}) multistep.StepAction
}
state
[
"communicator"
]
=
comm
break
break
WaitLoop
case
<-
timeout
:
ui
.
Error
(
"Timeout waiting for SSH."
)
s
.
cancel
=
true
...
...
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