Use yaml.safe_load instead of yaml.load 10/12110/1 v11.0.3
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 20 May 2022 11:01:21 +0000 (13:01 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 20 May 2022 11:17:26 +0000 (13:17 +0200)
Change-Id: I9872174f0205568c2b62f1ea7bf2cc20586327be
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: