Skip to content

Commit

Permalink
Merge pull request #2020 from aaronlehmann/update-unallocated-items
Browse files Browse the repository at this point in the history
allocator: Update unallocatedServices properly after service updates
  • Loading branch information
aaronlehmann committed Mar 9, 2017
2 parents 54cfa17 + 92e74a2 commit a2d9b0b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions manager/allocator/network.go
Expand Up @@ -402,6 +402,9 @@ func (a *Allocator) doNetworkAlloc(ctx context.Context, ev events.Event) {
return a.commitAllocatedService(ctx, batch, s)
}); err != nil {
log.G(ctx).WithError(err).Errorf("Failed to commit allocation during update for service %s", s.ID)
nc.unallocatedServices[s.ID] = s
} else {
delete(nc.unallocatedServices, s.ID)
}
case state.EventDeleteService:
s := v.Service.Copy()
Expand Down

0 comments on commit a2d9b0b

Please sign in to comment.