Fix improper restriction of XMl External Entity Reference, by using lxml 16/14316/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 9 Apr 2024 15:21:19 +0000 (17:21 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 9 Apr 2024 15:21:19 +0000 (17:21 +0200)
Change-Id: I42b5f59144e0fa2488caa60448c179e049ed0227
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osm_mon/collector/infra_collectors/vmware.py
osm_mon/collector/vnf_collectors/vmware.py

index 09db0db..04e9868 100644 (file)
@@ -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
index 2e03ebe..7284298 100644 (file)
@@ -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