From 3399144a259a65ddbc530794c96109e2d5e0b5d0 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Tue, 15 Nov 2022 16:23:22 +0100 Subject: [PATCH] Use of yaml.safe_load instead of yaml_load Change-Id: I0bf420ff9b0a977e6c50e7379646e9ec64c87a56 Signed-off-by: garciadeblas --- osm_policy_module/core/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osm_policy_module/core/config.py b/osm_policy_module/core/config.py index 289894a..1bc9b2b 100644 --- a/osm_policy_module/core/config.py +++ b/osm_policy_module/core/config.py @@ -43,7 +43,7 @@ class Config: path = "pol.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