diff --git a/packer/rpc/communicator.go b/packer/rpc/communicator.go index cd25b7e5d..44132250f 100644 --- a/packer/rpc/communicator.go +++ b/packer/rpc/communicator.go @@ -91,8 +91,7 @@ func (c *communicator) Start(cmd *packer.RemoteCmd) (err error) { log.Panic(err) } - cmd.ExitStatus = finished.ExitStatus - cmd.Exited = true + cmd.SetExited(finished.ExitStatus) }() err = c.client.Call("Communicator.Start", &args, new(interface{}))