From 5261735d9ee7b1cc4b983a6381a480b625b1299b Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Tue, 15 Nov 2022 16:27:50 +0100 Subject: [PATCH] Use of yaml.safe_load instead of yaml_load Change-Id: Ibdb89b23560f2c587f554f11f0e2a577047e6e22 Signed-off-by: garciadeblas --- osm_pla/config/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osm_pla/config/config.py b/osm_pla/config/config.py index 13ff43b..2fd7a8b 100644 --- a/osm_pla/config/config.py +++ b/osm_pla/config/config.py @@ -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: -- 2.25.1