From 50c5341cd4bffac25f7ab3e4eb8a0f722554f35e Mon Sep 17 00:00:00 2001 From: xujunjie-cover Date: Tue, 7 Nov 2023 18:22:46 +0800 Subject: [PATCH] fix: externalID map should not include external_ids (#3385) Signed-off-by: xujunjie-cover --- pkg/controller/security_group.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/security_group.go b/pkg/controller/security_group.go index c4dabea105f..3c7875e41e5 100644 --- a/pkg/controller/security_group.go +++ b/pkg/controller/security_group.go @@ -419,7 +419,7 @@ func (c *Controller) syncSgLogicalPort(key string) error { return err } - results, err := c.OVNNbClient.ListLogicalSwitchPorts(false, map[string]string{"external_ids:associated_sg_" + key: "true"}, nil) + results, err := c.OVNNbClient.ListLogicalSwitchPorts(false, map[string]string{fmt.Sprintf("associated_sg_%s", key): "true"}, nil) if err != nil { klog.Errorf("failed to find logical port, %v", err) return err