From a98b854eae15a3a86604bccaf6d84e012b583657 Mon Sep 17 00:00:00 2001 From: Benjamin Diaz Date: Mon, 24 Jun 2019 15:50:38 -0300 Subject: [PATCH] Changes insufficient data validation in alarms to account for metric results 0.0 Change-Id: Ia67e54ced6f5885ecd875c8a94529b9384fa46b2 Signed-off-by: Benjamin Diaz --- osm_mon/evaluator/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osm_mon/evaluator/service.py b/osm_mon/evaluator/service.py index 3865b17..20bb0ad 100644 --- a/osm_mon/evaluator/service.py +++ b/osm_mon/evaluator/service.py @@ -71,7 +71,7 @@ class EvaluatorService: alarm: Alarm): log.debug("_evaluate_metric") metric_value = self._get_metric_value(nsr_id, vnf_member_index, vdur_name, metric_name) - if not metric_value: + if metric_value is None: log.warning("No metric result for alarm %s", alarm.id) self.queue.put((alarm, AlarmStatus.INSUFFICIENT)) else: -- 2.25.1