Repair vitrage-ml run fail.

Now AlarmDataProcessor.init have not CONF,so that adding conf.machine_learning.plugins configuration cause error.
Change-Id: Iedb2ea5f6885c44f95c05008997065ca2ecab504
Closes-Bug: #1856799
This commit is contained in:
Q.hongtao 2019-12-18 11:04:49 +08:00 committed by Qitao
parent 5f0d2a8fc1
commit 2786ca7109

View File

@ -68,8 +68,7 @@ class MachineLearningService(coord.Service):
LOG.info('Machine Learning plugin %s started',
machine_learning_plugin_name)
machine_learning_plugins.append(importutils.import_object(
CONF[machine_learning_plugin_name].plugin_path,
CONF))
CONF[machine_learning_plugin_name].plugin_path))
return machine_learning_plugins