From b4f9bb78ae652d5e688315ba25f9055c14d986fe Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 21 Jan 2021 17:48:56 -0500 Subject: [PATCH] Address irrelavent call to yaml.load --- misc/makeboot.centos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/makeboot.centos.py b/misc/makeboot.centos.py index 77baa060..a0d95820 100644 --- a/misc/makeboot.centos.py +++ b/misc/makeboot.centos.py @@ -39,7 +39,7 @@ def makeboot_tree(distribution, profiledir): os.link('/var/lib/confluent/public/site/site-initramfs.gz', trginitramfs) profileinfo = os.path.join(profiledir, 'profile.yaml') with open(profileinfo) as info: - profile = yaml.load(info) + profile = yaml.safe_load(info) cfgfile = os.path.join(efidir, 'grub.cfg') with open(cfgfile, 'w') as grubcfg: grubcfg.write('set timeout=5\n') @@ -57,4 +57,4 @@ def makeboot_tree(distribution, profiledir): if __name__ == '__main__': - makeboot_tree(sys.argv[1], sys.argv[2]) \ No newline at end of file + makeboot_tree(sys.argv[1], sys.argv[2])