summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/diskprediction_local
diff options
context:
space:
mode:
authorhsiang41 <rick.chen@prophetstor.com>2018-11-20 03:39:21 +0100
committerhsiang41 <rick.chen@prophetstor.com>2018-11-23 10:28:50 +0100
commit579c1778a37db5a54a90ebb51ea582b25800a7a2 (patch)
tree64ef35f20e19f5e0da0cc6f9ec03355c39e694f6 /src/pybind/mgr/diskprediction_local
parentMerge pull request #25186 from tchaikov/wip-vive-le-make-install (diff)
downloadceph-579c1778a37db5a54a90ebb51ea582b25800a7a2.tar.xz
ceph-579c1778a37db5a54a90ebb51ea582b25800a7a2.zip
mgr: Diskprediction_cloud action when config changes
Trigger diskprediction cloud action when receive notify configuration changed. Signed-off-by: Rick Chen <rick.chen@prophetstor.com>
Diffstat (limited to 'src/pybind/mgr/diskprediction_local')
-rw-r--r--src/pybind/mgr/diskprediction_local/module.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pybind/mgr/diskprediction_local/module.py b/src/pybind/mgr/diskprediction_local/module.py
index 8662e2f75fb..98a014209f0 100644
--- a/src/pybind/mgr/diskprediction_local/module.py
+++ b/src/pybind/mgr/diskprediction_local/module.py
@@ -171,7 +171,7 @@ class Module(MgrModule):
predicted_result = obj_predictor.predict(predict_datas)
return predicted_result
- def predict_life_expentancy(self, devid):
+ def predict_life_expectancy(self, devid):
result = self._predict_life_expentancy(devid)
if result.lower() == 'good':
return 0, '>6w', ''