Skip to content

Commit

Permalink
fix: externalID map should not include external_ids (#3385)
Browse files Browse the repository at this point in the history
Signed-off-by: xujunjie-cover <[email protected]>
  • Loading branch information
xujunjie-cover authored Nov 7, 2023
1 parent 92b3860 commit 75bbeb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/security_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 75bbeb2

Please sign in to comment.