communicator/ssh: log when remote exits

This commit is contained in:
Mitchell Hashimoto 2013-07-30 17:06:22 -07:00
parent 8bffbb6f44
commit a134a326b8
1 changed files with 1 additions and 0 deletions

View File

@ -87,6 +87,7 @@ func (c *comm) Start(cmd *packer.RemoteCmd) (err error) {
}
}
log.Printf("remote command exited with '%d': %s", exitStatus, cmd.Command)
cmd.SetExited(exitStatus)
}()