From 333ed6aa7810811b0ef9827608193b283c603668 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 29 Jul 2013 12:07:37 -0700 Subject: [PATCH] packer/rpc: Use the SetExited for remote communicators --- packer/rpc/communicator.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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{}))