client: canonicalize alloc runner on RPC

This commit is contained in:
Mahmood Ali
2020-01-09 08:34:19 -05:00
parent 7783c137a3
commit 0a5fd78e0b

View File

@@ -1995,6 +1995,10 @@ OUTER:
// Ensure that we received all the allocations we wanted
pulledAllocs = make(map[string]*structs.Allocation, len(allocsResp.Allocs))
for _, alloc := range allocsResp.Allocs {
// handle an old Server
alloc.Canonicalize()
pulledAllocs[alloc.ID] = alloc
}