Skip to content

Commit

Permalink
ovn client: fix sb chassis existence check (#3072)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Jul 25, 2023
1 parent 038ff7d commit 38cd920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ovs/ovn-sbctl.go
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 38cd920

Please sign in to comment.