Skip to content

Commit 38cd920

Browse files
authored
ovn client: fix sb chassis existence check (#3072)
1 parent 038ff7d commit 38cd920

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
@@ -113,7 +113,7 @@ func (c LegacyClient) ChassisExist(chassisName string) (bool, error) {
113113
if err != nil {
114114
return false, fmt.Errorf("failed to find node chassis %s, %v", chassisName, err)
115115
}
116-
if len(strings.Split(output, "\n")) == 0 {
116+
if len(output) == 0 {
117117
return false, nil
118118
}
119119
return true, nil

0 commit comments

Comments
 (0)