From: garciadeblas Date: Wed, 22 May 2024 21:34:07 +0000 (+0200) Subject: Fix pylint issues appeared with version 3.2.0 of pylint X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=392fb87abbab55f026d46dede0194bc2456ca611;p=osm%2FPOL.git Fix pylint issues appeared with version 3.2.0 of pylint Change-Id: I633edb9975747f0c9c4009eaf8fa3ebf0f36452d Signed-off-by: garciadeblas --- 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_"):