From c0193c06e0246705b94e81b0af1d44adcb87af74 Mon Sep 17 00:00:00 2001 From: David Schroff Date: Mon, 5 Sep 2022 11:51:07 +0200 Subject: [PATCH] Add Loader=yaml.FullLoader, as pyyaml 5.1+ requires a loader definition for security purposes --- pyaptly/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyaptly/__init__.py b/pyaptly/__init__.py index c4805f9..84cef98 100755 --- a/pyaptly/__init__.py +++ b/pyaptly/__init__.py @@ -784,7 +784,7 @@ def main(argv=None): lg.debug("Args: %s", vars(args)) with codecs.open(args.config, 'r', encoding="UTF-8") as cfgfile: - cfg = yaml.load(cfgfile) + cfg = yaml.load(cfgfile, Loader=yaml.FullLoader) state.read() # run function for selected subparser