From 1e6e756218d1f398d4545c0d51ed78a35ac370f7 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Tue, 9 Apr 2024 17:21:19 +0200 Subject: [PATCH] Fix improper restriction of XMl External Entity Reference, by using lxml Change-Id: I42b5f59144e0fa2488caa60448c179e049ed0227 Signed-off-by: garciadeblas --- osm_mon/collector/infra_collectors/vmware.py | 2 +- osm_mon/collector/vnf_collectors/vmware.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/osm_mon/collector/infra_collectors/vmware.py b/osm_mon/collector/infra_collectors/vmware.py index 09db0db..04e9868 100644 --- a/osm_mon/collector/infra_collectors/vmware.py +++ b/osm_mon/collector/infra_collectors/vmware.py @@ -25,7 +25,7 @@ import logging from typing import List -from xml.etree import ElementTree as XmlElementTree +from lxml import etree as XmlElementTree import requests from pyvcloud.vcd.client import BasicLoginCredentials diff --git a/osm_mon/collector/vnf_collectors/vmware.py b/osm_mon/collector/vnf_collectors/vmware.py index 2e03ebe..7284298 100644 --- a/osm_mon/collector/vnf_collectors/vmware.py +++ b/osm_mon/collector/vnf_collectors/vmware.py @@ -23,7 +23,7 @@ import logging import traceback -from xml.etree import ElementTree as XmlElementTree +from lxml import etree as XmlElementTree import requests from pyvcloud.vcd.client import BasicLoginCredentials -- 2.25.1