mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 11:25:41 +03:00
canonicalize allocs from plan results too
This commit is contained in:
@@ -294,6 +294,11 @@ func (s *StateStore) UpsertPlanResults(index uint64, results *structs.ApplyPlanR
|
||||
allocsToUpsert = append(allocsToUpsert, results.AllocsUpdated...)
|
||||
allocsToUpsert = append(allocsToUpsert, allocsPreempted...)
|
||||
|
||||
// handle upgrade path
|
||||
for _, alloc := range allocsToUpsert {
|
||||
alloc.Canonicalize()
|
||||
}
|
||||
|
||||
if err := s.upsertAllocsImpl(index, allocsToUpsert, txn); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user