Skip to content

Commit da86070

Browse files
committed
ovn client: fix sb chassis existence check (#3072)
1 parent 998e857 commit da86070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/ovs/ovn-sbctl.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func (c LegacyClient) ChassisExist(chassisName string) (bool, error) {
9898
if err != nil {
9999
return false, fmt.Errorf("failed to find node chassis %s, %v", chassisName, err)
100100
}
101-
if len(strings.Split(output, "\n")) == 0 {
101+
if len(output) == 0 {
102102
return false, nil
103103
}
104104
return true, nil

0 commit comments

Comments
 (0)