From: garciadeblas Date: Tue, 15 Nov 2022 15:43:57 +0000 (+0100) Subject: Use of yaml.safe_load instead of yaml_load X-Git-Tag: release-v13.0-start~1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=e7559552affe974e363f1d9340c22e8a7b662071;p=osm%2FMON.git Use of yaml.safe_load instead of yaml_load Change-Id: I4ec08acefcbab867a0ccb154dccaf13b16341d42 Signed-off-by: garciadeblas --- diff --git a/osm_mon/core/config.py b/osm_mon/core/config.py index 815e66e..1dfb16c 100644 --- a/osm_mon/core/config.py +++ b/osm_mon/core/config.py @@ -43,7 +43,7 @@ class Config: path = "mon.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: