builder/amazon/chroot: log the exit code for the chroot communicator

This commit is contained in:
Mitchell Hashimoto 2013-07-30 17:23:37 -07:00
parent a134a326b8
commit be5fa9ecdb
1 changed files with 3 additions and 0 deletions

View File

@ -45,6 +45,9 @@ func (c *Communicator) Start(cmd *packer.RemoteCmd) error {
}
}
log.Printf(
"Chroot executation ended with '%d': '%s'",
exitStatus, cmd.Command)
cmd.SetExited(exitStatus)
}()