mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-21 17:11:58 +00:00
Address irrelavent call to yaml.load
This commit is contained in:
parent
c8e1efecdb
commit
b4f9bb78ae
@ -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])
|
||||
makeboot_tree(sys.argv[1], sys.argv[2])
|
||||
|
Loading…
Reference in New Issue
Block a user