From: garciadeblas Date: Fri, 20 May 2022 11:01:21 +0000 (+0200) Subject: Use yaml.safe_load instead of yaml.load X-Git-Tag: v11.0.3^0 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=cc4d2eea102e28bfbf16862cf4ecd65d9d25430b;hp=061dc1d05722e700247e980123c50bd80566a749;p=osm%2FMON.git Use yaml.safe_load instead of yaml.load Change-Id: I9872174f0205568c2b62f1ea7bf2cc20586327be 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: