Fix pylint issues appeared with version 3.2.0 of pylint
[osm/POL.git] / osm_policy_module / common / mon_client.py
index e9216aa..0142096 100644 (file)
@@ -180,6 +180,7 @@ class MonClient:
         if vnfr and vnfd:
             # TODO: Change for multiple DF support
             df = vnfd.get("df", [{}])[0]
+            metric_port = 9100
             if "exporters-endpoints" in df:
                 metric_port = df["exporters-endpoints"].get("metric-port", 9100)
             if metric_name.startswith("kpi_"):