Use of yaml.safe_load instead of yaml_load 94/12694/1 release-v13.0-start
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 15 Nov 2022 15:23:22 +0000 (16:23 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 15 Nov 2022 15:23:22 +0000 (16:23 +0100)
Change-Id: I0bf420ff9b0a977e6c50e7379646e9ec64c87a56
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osm_policy_module/core/config.py

index 289894a..1bc9b2b 100644 (file)
@@ -43,7 +43,7 @@ class Config:
             path = "pol.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: