Get everything compiling again

This commit is contained in:
Mitchell Hashimoto 2013-06-01 17:48:19 -07:00
parent 8034e91ca3
commit c6dd54760c
3 changed files with 15 additions and 15 deletions

View File

@ -41,11 +41,11 @@ func (c *comm) Start(cmd string) (remote *packer.RemoteCommand, err error) {
// Setup the remote command
remote = &packer.RemoteCommand{
stdin,
stdout,
stderr,
false,
-1,
Stdin: stdin,
Stdout: stdout,
Stderr: stderr,
Exited: false,
ExitStatus: -1,
}
log.Printf("starting remote command: %s", cmd)

View File

@ -80,11 +80,11 @@ func (c *communicator) Start(cmd string) (rc *packer.RemoteCommand, err error) {
// Build the response object using the streams we created
rc = &packer.RemoteCommand{
stdinC,
stdoutC,
stderrC,
false,
-1,
Stdin: stdinC,
Stdout: stdoutC,
Stderr: stderrC,
Exited: false,
ExitStatus: -1,
}
// In a goroutine, we wait for the process to exit, then we set

View File

@ -39,11 +39,11 @@ func (t *testCommunicator) Start(cmd string) (*packer.RemoteCommand, error) {
stderr, t.startErr = io.Pipe()
rc := &packer.RemoteCommand{
stdin,
stdout,
stderr,
false,
0,
Stdin: stdin,
Stdout: stdout,
Stderr: stderr,
Exited: false,
ExitStatus: 0,
}
t.startExited = &rc.Exited