From: Benjamin Diaz Date: Mon, 24 Jun 2019 18:50:38 +0000 (-0300) Subject: Changes insufficient data validation in alarms to account for metric results 0.0 X-Git-Tag: v7.0.0rc1~35 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=a98b854eae15a3a86604bccaf6d84e012b583657;p=osm%2FMON.git Changes insufficient data validation in alarms to account for metric results 0.0 Change-Id: Ia67e54ced6f5885ecd875c8a94529b9384fa46b2 Signed-off-by: Benjamin Diaz --- 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: