Commit 333ed6aa authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer/rpc: Use the SetExited for remote communicators

parent 26a117e3
...@@ -91,8 +91,7 @@ func (c *communicator) Start(cmd *packer.RemoteCmd) (err error) { ...@@ -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{}))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment