Use of yaml.safe_load instead of yaml_load 95/12695/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 15 Nov 2022 15:43:57 +0000 (16:43 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 15 Nov 2022 15:44:10 +0000 (16:44 +0100)
Change-Id: I4ec08acefcbab867a0ccb154dccaf13b16341d42
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osm_mon/core/config.py

index 815e66e..1dfb16c 100644 (file)
@@ -43,7 +43,7 @@ class Config:
             path = "mon.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: