Skip to content

Commit

Permalink
bug_fix if only one port bind to the sg, then unbind the port to the …
Browse files Browse the repository at this point in the history
…sg ,it will not enforce in port_group (#3092)
  • Loading branch information
lynn901 authored Jul 30, 2023
1 parent 4c1161e commit 8821874
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/controller/security_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,6 @@ func (c *Controller) syncSgLogicalPort(key string) error {
klog.Errorf("failed to find logical port, %v", err)
return err
}
if len(results) == 0 {
return nil
}

var ports, v4s, v6s []string
for _, lsp := range results {
Expand Down

0 comments on commit 8821874

Please sign in to comment.