Send NodeID when updating client allocation

This commit is contained in:
Alex Dadgar
2016-02-22 17:25:11 -08:00
parent 532df0d27e
commit d6e3e8c8cf

View File

@@ -835,6 +835,7 @@ func (c *Client) updateAllocStatus(alloc *structs.Allocation) {
// Only send the fields that are updatable by the client.
stripped := new(structs.Allocation)
stripped.ID = alloc.ID
stripped.NodeID = alloc.NodeID
stripped.TaskStates = alloc.TaskStates
stripped.ClientStatus = alloc.ClientStatus
stripped.ClientDescription = alloc.ClientDescription