fix(host): detect ovs version

This commit is contained in:
Zexi Li
2021-04-09 16:56:34 +08:00
parent 6fcd59c0ce
commit 5afa999fe0
+1 -1
View File
@@ -714,7 +714,7 @@ func (h *SHostInfo) detectOvsKOVersion() error {
lines := strings.Split(string(output), "\n")
for i := 0; i < len(lines); i++ {
line := lines[i]
if strings.HasPrefix(line, "version:") || (h.IsAarch64() && strings.HasPrefix(line, "vermagic")) {
if strings.HasPrefix(line, "version:") || strings.HasPrefix(line, "vermagic") {
log.Infof("kernel module openvswitch %s", line)
return nil
}