From 2786ca7109fe737a4adeb96846be188f84ad8f26 Mon Sep 17 00:00:00 2001 From: "Q.hongtao" Date: Wed, 18 Dec 2019 11:04:49 +0800 Subject: [PATCH] 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 --- vitrage/machine_learning/service.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vitrage/machine_learning/service.py b/vitrage/machine_learning/service.py index 2410e6bf2..ac93bc029 100644 --- a/vitrage/machine_learning/service.py +++ b/vitrage/machine_learning/service.py @@ -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