From: garciadeblas Date: Wed, 25 Jan 2023 15:10:55 +0000 (+0100) Subject: Replace yaml.load by yaml.safe_load X-Git-Tag: release-v14.0-start~24 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F64%2F12864%2F2;p=osm%2FNG-SA.git Replace yaml.load by yaml.safe_load Change-Id: I0e29756728212c6595276f16ac60afbfdb390214 Signed-off-by: garciadeblas --- diff --git a/src/osm_ngsa/osm_mon/core/config.py b/src/osm_ngsa/osm_mon/core/config.py index eb0e493..22b712f 100644 --- a/src/osm_ngsa/osm_mon/core/config.py +++ b/src/osm_ngsa/osm_mon/core/config.py @@ -36,7 +36,7 @@ class Config: path = "config.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: