packer/rpc: Use the SetExited for remote communicators
This commit is contained in:
parent
26a117e36f
commit
333ed6aa78
|
@ -91,8 +91,7 @@ func (c *communicator) Start(cmd *packer.RemoteCmd) (err error) {
|
||||||
log.Panic(err)
|
log.Panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd.ExitStatus = finished.ExitStatus
|
cmd.SetExited(finished.ExitStatus)
|
||||||
cmd.Exited = true
|
|
||||||
}()
|
}()
|
||||||
|
|
||||||
err = c.client.Call("Communicator.Start", &args, new(interface{}))
|
err = c.client.Call("Communicator.Start", &args, new(interface{}))
|
||||||
|
|
Loading…
Reference in New Issue