Skip to content

Commit

Permalink
fix: delete chassis (#1927)
Browse files Browse the repository at this point in the history
  • Loading branch information
fanriming authored Sep 22, 2022
1 parent 395a355 commit 596741b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ovs/ovn-sbctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (c LegacyClient) DeleteChassisByName(chassisName string) error {
}

cmdArg := []string{"chassis-del", strings.TrimSpace(chassisName)}
if util.CompareVersion("20.09", ovnVersion) >= 0 {
if util.CompareVersion(ovnVersion, "20.09") >= 0 {
cmdArg = append(cmdArg, "--", "destroy", "chassis_private", strings.TrimSpace(chassisName))
}
if _, err := c.ovnSbCommand(cmdArg...); err != nil {
Expand Down

0 comments on commit 596741b

Please sign in to comment.