From 4bf03687341c05d9bf6a5672eeb7206551cdf459 Mon Sep 17 00:00:00 2001 From: Asjid Kalam Date: Tue, 23 Feb 2021 01:54:43 +0530 Subject: [PATCH] fixed yaml desearilization bug by using SafeLoader --- live-installer/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/live-installer/config.py b/live-installer/config.py index d07222d8..d95f0b10 100755 --- a/live-installer/config.py +++ b/live-installer/config.py @@ -15,9 +15,9 @@ def load_config(config_path): exit("{} doesn't exists. Please create config file!".format(config_path)) try: - contents = yaml.load(file, Loader=yaml.FullLoader) + contents = yaml.load(file, Loader=yaml.SafeLoader) except: - contents = yaml.load(file) + contents = yaml.safe_load(file) return contents