From: garciadeblas Date: Tue, 9 Apr 2024 15:21:19 +0000 (+0200) Subject: Fix improper restriction of XMl External Entity Reference, by using lxml X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FMON.git;a=commitdiff_plain Fix improper restriction of XMl External Entity Reference, by using lxml Change-Id: I42b5f59144e0fa2488caa60448c179e049ed0227 Signed-off-by: garciadeblas --- 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