Replace yaml.load by yaml.safe_load 64/12864/2
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 25 Jan 2023 15:10:55 +0000 (16:10 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 8 Feb 2023 10:24:18 +0000 (11:24 +0100)
Change-Id: I0e29756728212c6595276f16ac60afbfdb390214
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
src/osm_ngsa/osm_mon/core/config.py

index eb0e493..22b712f 100644 (file)
@@ -36,7 +36,7 @@ class Config:
             path = "config.yaml"
             config_file = pkg_resources.resource_filename(__name__, path)
         with open(config_file) as f:
-            self.conf = yaml.load(f)
+            self.conf = yaml.safe_load(f)
 
     def get(self, section, field=None):
         if not field: