Skip to content

Commit

Permalink
trim space the port_binding's output
Browse files Browse the repository at this point in the history
  • Loading branch information
xieyanker committed Mar 15, 2021
1 parent 8e0582e commit 496fc4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pinger/ovn.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,5 @@ func checkSBBindings(config *Configuration) ([]string, error) {
return nil, err
}

return strings.Split(string(output), "\n"), nil
return strings.Split(strings.TrimSpace(string(output)), "\n"), nil
}

0 comments on commit 496fc4d

Please sign in to comment.