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
417f7e7f
Commit
417f7e7f
authored
Jun 11, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fmt
parent
de9c4ace
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
builder/amazonebs/step_connect_ssh.go
builder/amazonebs/step_connect_ssh.go
+1
-1
packer/plugin/client.go
packer/plugin/client.go
+1
-1
packer/plugin/client_test.go
packer/plugin/client_test.go
+1
-1
provisioner/shell/provisioner.go
provisioner/shell/provisioner.go
+2
-2
No files found.
builder/amazonebs/step_connect_ssh.go
View file @
417f7e7f
...
...
@@ -74,7 +74,7 @@ func (s *stepConnectSSH) Run(state map[string]interface{}) multistep.StepAction
log
.
Printf
(
"Waiting up to %s for SSH connection"
,
config
.
SSHTimeout
)
timeout
:=
time
.
After
(
config
.
SSHTimeout
)
ConnectWaitLoop
:
ConnectWaitLoop
:
for
{
select
{
case
<-
connected
:
...
...
packer/plugin/client.go
View file @
417f7e7f
...
...
@@ -24,7 +24,7 @@ var managedClients = make([]*Client, 0, 5)
// RPC address, and returning various types of packer interface implementations
// across the multi-process communication layer.
type
Client
struct
{
config
*
ClientConfig
config
*
ClientConfig
exited
bool
doneLogging
bool
l
sync
.
Mutex
...
...
packer/plugin/client_test.go
View file @
417f7e7f
...
...
@@ -35,7 +35,7 @@ func TestClient(t *testing.T) {
func
TestClient_Start_Timeout
(
t
*
testing
.
T
)
{
config
:=
&
ClientConfig
{
Cmd
:
helperProcess
(
"start-timeout"
),
Cmd
:
helperProcess
(
"start-timeout"
),
StartTimeout
:
50
*
time
.
Millisecond
,
}
...
...
provisioner/shell/provisioner.go
View file @
417f7e7f
...
...
@@ -5,8 +5,8 @@ package shell
import
(
"bufio"
"bytes"
"fmt"
"errors"
"fmt"
"github.com/mitchellh/iochan"
"github.com/mitchellh/mapstructure"
"github.com/mitchellh/packer/packer"
...
...
@@ -104,7 +104,7 @@ func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) {
// Write our contents to it
writer
:=
bufio
.
NewWriter
(
tf
)
for
_
,
command
:=
range
p
.
config
.
Inline
{
if
_
,
err
:=
writer
.
WriteString
(
command
+
"
\n
"
);
err
!=
nil
{
if
_
,
err
:=
writer
.
WriteString
(
command
+
"
\n
"
);
err
!=
nil
{
ui
.
Error
(
fmt
.
Sprintf
(
"Error preparing shell script: %s"
,
err
))
return
}
...
...
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