Reorder kernel version checking logic

This commit is contained in:
KingJ 2019-09-07 10:59:32 +01:00 committed by Humble Devassy Chirammal
parent ed477e1ba1
commit 4ba07092e8

View File

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