Get everything compiling again
This commit is contained in:
parent
8034e91ca3
commit
c6dd54760c
@ -41,11 +41,11 @@ func (c *comm) Start(cmd string) (remote *packer.RemoteCommand, err error) {
|
|||||||
|
|
||||||
// Setup the remote command
|
// Setup the remote command
|
||||||
remote = &packer.RemoteCommand{
|
remote = &packer.RemoteCommand{
|
||||||
stdin,
|
Stdin: stdin,
|
||||||
stdout,
|
Stdout: stdout,
|
||||||
stderr,
|
Stderr: stderr,
|
||||||
false,
|
Exited: false,
|
||||||
-1,
|
ExitStatus: -1,
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Printf("starting remote command: %s", cmd)
|
log.Printf("starting remote command: %s", cmd)
|
||||||
|
@ -80,11 +80,11 @@ func (c *communicator) Start(cmd string) (rc *packer.RemoteCommand, err error) {
|
|||||||
|
|
||||||
// Build the response object using the streams we created
|
// Build the response object using the streams we created
|
||||||
rc = &packer.RemoteCommand{
|
rc = &packer.RemoteCommand{
|
||||||
stdinC,
|
Stdin: stdinC,
|
||||||
stdoutC,
|
Stdout: stdoutC,
|
||||||
stderrC,
|
Stderr: stderrC,
|
||||||
false,
|
Exited: false,
|
||||||
-1,
|
ExitStatus: -1,
|
||||||
}
|
}
|
||||||
|
|
||||||
// In a goroutine, we wait for the process to exit, then we set
|
// In a goroutine, we wait for the process to exit, then we set
|
||||||
|
@ -39,11 +39,11 @@ func (t *testCommunicator) Start(cmd string) (*packer.RemoteCommand, error) {
|
|||||||
stderr, t.startErr = io.Pipe()
|
stderr, t.startErr = io.Pipe()
|
||||||
|
|
||||||
rc := &packer.RemoteCommand{
|
rc := &packer.RemoteCommand{
|
||||||
stdin,
|
Stdin: stdin,
|
||||||
stdout,
|
Stdout: stdout,
|
||||||
stderr,
|
Stderr: stderr,
|
||||||
false,
|
Exited: false,
|
||||||
0,
|
ExitStatus: 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
t.startExited = &rc.Exited
|
t.startExited = &rc.Exited
|
||||||
|
Loading…
x
Reference in New Issue
Block a user