Skip to content

Commit 8821874

Browse files
author
袁又袁
authored
bug_fix if only one port bind to the sg, then unbind the port to the sg ,it will not enforce in port_group (#3092)
1 parent 4c1161e commit 8821874

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/controller/security_group.go

-3
Original file line numberDiff line numberDiff line change
@@ -427,9 +427,6 @@ func (c *Controller) syncSgLogicalPort(key string) error {
427427
klog.Errorf("failed to find logical port, %v", err)
428428
return err
429429
}
430-
if len(results) == 0 {
431-
return nil
432-
}
433430

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

0 commit comments

Comments
 (0)