Skip to content

Commit

Permalink
Merge pull request #2019 from aaronlehmann/allocator-delete-unallocat…
Browse files Browse the repository at this point in the history
…ed-networks

allocator: Remove deleted networks from the unallocated set
  • Loading branch information
aaronlehmann authored Mar 9, 2017
2 parents a2d9b0b + 5f52c14 commit a5eb9c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manager/allocator/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,8 @@ func (a *Allocator) doNetworkAlloc(ctx context.Context, ev events.Event) {
if err := nc.nwkAllocator.Deallocate(n); err != nil {
log.G(ctx).WithError(err).Errorf("Failed during network free for network %s", n.ID)
}

delete(nc.unallocatedNetworks, n.ID)
case state.EventCreateService:
s := v.Service.Copy()

Expand Down

0 comments on commit a5eb9c0

Please sign in to comment.