Reorder kernel version checking logic

This commit is contained in:
KingJ 2019-09-07 10:59:32 +01:00 committed by mergify[bot]
parent 197c8fcfcc
commit 0639e00705

View File

@ -70,7 +70,7 @@ func loadAvailableMounters() error {
if err != nil {
return err
}
if (majorVers >= 4 && minorVers >= 17) || majorVers >= 5 {
if majorVers > 4 || (majorVers >= 4 && minorVers >= 17) {
klog.Infof("loaded mounter: %s", volumeMounterKernel)
availableMounters = append(availableMounters, volumeMounterKernel)
} else {