]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/diskprediction_local/module.py
import 15.2.5
[ceph.git] / ceph / src / pybind / mgr / diskprediction_local / module.py
index 61f3cc1f6dcc72f9145bdf2ee77f26d6d844ac82..948c59bd7edf0a3090b61df6327e0143da80d89e 100644 (file)
@@ -218,7 +218,7 @@ class Module(MgrModule):
         else:
             self.log.error('unable to predict device due to health data records less than 6 days')
 
-        if predict_datas:
+        if len(predict_datas) >= 6:
             predicted_result = obj_predictor.predict(predict_datas)
         return predicted_result