Use of yaml.safe_load instead of yaml_load 51/12751/1 v13.0.0 v13.0.0rc1 v13.0.0rc2
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 15 Nov 2022 15:27:50 +0000 (16:27 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 29 Nov 2022 14:20:20 +0000 (15:20 +0100)
Change-Id: Ibdb89b23560f2c587f554f11f0e2a577047e6e22
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osm_pla/config/config.py

index 13ff43b..2fd7a8b 100644 (file)
@@ -35,7 +35,7 @@ class Config:
             path = "pla.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 _read_env(self):
         for env in os.environ: