client: canonicalize alloc runner on RPC

This commit is contained in:
Mahmood Ali 2020-01-09 08:34:19 -05:00
parent d740d347ce
commit 7c153e1a64

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
}