mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(host): detect ovs version
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user