From 5ef23c09cb54cadf41835383b33d257c37324209 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Wed, 25 Jan 2023 16:10:55 +0100 Subject: [PATCH] Replace yaml.load by yaml.safe_load Change-Id: I0e29756728212c6595276f16ac60afbfdb390214 Signed-off-by: garciadeblas --- src/osm_ngsa/osm_mon/core/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.25.1