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
2fff555e
Commit
2fff555e
authored
Jul 14, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fmt
parent
020e719e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
builder/vmware/step_wait_for_ssh.go
builder/vmware/step_wait_for_ssh.go
+1
-1
communicator/ssh/communicator.go
communicator/ssh/communicator.go
+1
-1
communicator/ssh/communicator_test.go
communicator/ssh/communicator_test.go
+2
-2
communicator/ssh/connect.go
communicator/ssh/connect.go
+1
-1
No files found.
builder/vmware/step_wait_for_ssh.go
View file @
2fff555e
...
...
@@ -25,7 +25,7 @@ import (
// communicator packer.Communicator
type
stepWaitForSSH
struct
{
cancel
bool
comm
packer
.
Communicator
comm
packer
.
Communicator
}
func
(
s
*
stepWaitForSSH
)
Run
(
state
map
[
string
]
interface
{})
multistep
.
StepAction
{
...
...
communicator/ssh/communicator.go
View file @
2fff555e
...
...
@@ -15,7 +15,7 @@ import (
type
comm
struct
{
client
*
ssh
.
ClientConn
config
*
Config
conn
net
.
Conn
conn
net
.
Conn
}
// Config is the structure used to configure the SSH communicator.
...
...
communicator/ssh/communicator_test.go
View file @
2fff555e
...
...
@@ -125,7 +125,7 @@ func TestNew_Invalid(t *testing.T) {
config
:=
&
Config
{
Connection
:
conn
,
SSHConfig
:
clientConfig
,
SSHConfig
:
clientConfig
,
}
_
,
err
:=
New
(
config
)
...
...
@@ -152,7 +152,7 @@ func TestStart(t *testing.T) {
config
:=
&
Config
{
Connection
:
conn
,
SSHConfig
:
clientConfig
,
SSHConfig
:
clientConfig
,
}
client
,
err
:=
New
(
config
)
...
...
communicator/ssh/connect.go
View file @
2fff555e
...
...
@@ -12,6 +12,6 @@ import (
func
ConnectFunc
(
network
,
addr
string
)
func
()
(
net
.
Conn
,
error
)
{
return
func
()
(
net
.
Conn
,
error
)
{
log
.
Printf
(
"Opening conn for SSH to %s %s"
,
network
,
addr
)
return
net
.
DialTimeout
(
network
,
addr
,
15
*
time
.
Second
)
return
net
.
DialTimeout
(
network
,
addr
,
15
*
time
.
Second
)
}
}
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