From: garciadeblas Date: Tue, 15 Nov 2022 15:27:50 +0000 (+0100) Subject: Use of yaml.safe_load instead of yaml_load X-Git-Tag: release-v14.0-start~5 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F46%2F12746%2F1;p=osm%2FPLA.git Use of yaml.safe_load instead of yaml_load Change-Id: Ibdb89b23560f2c587f554f11f0e2a577047e6e22 Signed-off-by: garciadeblas --- 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: