From ecf3f132b696fb51f22320a17477fa7b0a3001f1 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Wed, 22 May 2024 23:34:07 +0200 Subject: [PATCH] Fix pylint issues appeared with version 3.2.0 of pylint Change-Id: I633edb9975747f0c9c4009eaf8fa3ebf0f36452d Signed-off-by: garciadeblas --- osm_policy_module/common/mon_client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/osm_policy_module/common/mon_client.py b/osm_policy_module/common/mon_client.py index e9216aa..0142096 100644 --- a/osm_policy_module/common/mon_client.py +++ b/osm_policy_module/common/mon_client.py @@ -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_"): -- 2.25.1