From cfb3d7cdb6936afe61018fa2062ae05dcf5b0b2d Mon Sep 17 00:00:00 2001
From: wangdi <wangdi@kylinos.cn>
Date: Tue, 14 Mar 2023 09:22:33 +0800
Subject: [PATCH] be compatible with pyyaml 6.x

---
 runner_service/configuration.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/runner_service/configuration.py b/runner_service/configuration.py
index d7a5c17..71a1307 100644
--- a/runner_service/configuration.py
+++ b/runner_service/configuration.py
@@ -106,7 +106,7 @@ class Config(object):
 
         try:
             with open(self.config_file, "r") as _cfg:
-                local_config = yaml.load(_cfg.read())
+                local_config = yaml.safe_load(_cfg.read())
         except yaml.YAMLError as exc:
             logger.critical("ERROR: YAML error in configuration "
                             "file: {}".format(exc))
-- 
2.39.1

