Skip to content

Commit

Permalink
Fix handleDeleteSubnet() to release network from subnet allocator.
Browse files Browse the repository at this point in the history
This was introduced in #16766
  • Loading branch information
Ravi Sankar Penta authored and openshift-cherrypick-robot committed Mar 3, 2018
1 parent 1f02cb5 commit 9b2e5ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/network/master/subnets.go
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ func (master *OsdnMaster) handleDeleteSubnet(obj interface{}) {
hs := obj.(*networkapi.HostSubnet)
glog.V(5).Infof("Watch %s event for HostSubnet %q", watch.Deleted, hs.Name)

if _, ok := hs.Annotations[networkapi.AssignHostSubnetAnnotation]; !ok {
if _, ok := hs.Annotations[networkapi.AssignHostSubnetAnnotation]; ok {
return
}

Expand Down

0 comments on commit 9b2e5ed

Please sign in to comment.