Skip to content

Commit 2ca7a16

Browse files
Merge pull request #18819 from openshift-cherrypick-robot/cherry-pick-18801-to-release-3.9
Automatic merge from submit-queue. [release-3.9] Fix handleDeleteSubnet() to release network from subnet allocator This is an automated cherry-pick of #18801 /assign pravisankar
2 parents c70dd8d + 9b2e5ed commit 2ca7a16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/network/master/subnets.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ func (master *OsdnMaster) handleDeleteSubnet(obj interface{}) {
334334
hs := obj.(*networkapi.HostSubnet)
335335
glog.V(5).Infof("Watch %s event for HostSubnet %q", watch.Deleted, hs.Name)
336336

337-
if _, ok := hs.Annotations[networkapi.AssignHostSubnetAnnotation]; !ok {
337+
if _, ok := hs.Annotations[networkapi.AssignHostSubnetAnnotation]; ok {
338338
return
339339
}
340340

0 commit comments

Comments
 (0)