Fix pylint issues appeared with version 3.2.0 of pylint
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 22 May 2024 21:34:07 +0000 (23:34 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 22 May 2024 21:34:07 +0000 (23:34 +0200)
Change-Id: I633edb9975747f0c9c4009eaf8fa3ebf0f36452d
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
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_"):