Skip to content

Commit

Permalink
ovn client: fix sb chassis existence check
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Jul 25, 2023
1 parent 90c8305 commit 49d6461
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 @@ -113,7 +113,7 @@ func (c LegacyClient) ChassisExist(chassisName string) (bool, error) {
if err != nil {
return false, fmt.Errorf("failed to find node chassis %s, %v", chassisName, err)
}
if len(strings.Split(output, "\n")) == 0 {
if len(output) == 0 {
return false, nil
}
return true, nil
Expand Down

0 comments on commit 49d6461

Please sign in to comment.