From 09ff426202d9b8f10d3299a6d6583205f6a37f42 Mon Sep 17 00:00:00 2001 From: Ben Steffen Date: Tue, 26 Nov 2019 16:10:01 -0500 Subject: [PATCH 1/1] Don't do anything fancy and just use yaml.CSafeLoader --- python/invirt/config.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python/invirt/config.py b/python/invirt/config.py index 76c848a..93d61c7 100644 --- a/python/invirt/config.py +++ b/python/invirt/config.py @@ -5,8 +5,6 @@ import re import yaml import invirt.common -try: loader = yaml.CSafeLoader -except: loader = yaml.SafeLoader src_path = '/etc/invirt/master.yaml' src_dirpath = '/etc/invirt/conf.d' @@ -64,7 +62,7 @@ def load_master(): config = dict() for filename in list_files(): with open(filename) as f: - augment(config, yaml.load(f, loader)) + augment(config, yaml.load(f, yaml.CSafeLoader)) return config def get_src_mtime(): -- 1.7.9.5