2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Make directory exist before creating file

This commit is contained in:
Jarrod Johnson 2024-07-12 16:31:06 -04:00
parent 3aea1ec7d6
commit c0cc673c63

View File

@ -187,6 +187,7 @@ def update_boot_linux(profiledir, profile, label):
profiledir + '/boot/boot/grub.cfg'
]
for grubcfgpth in grubcfgpath:
os.makedirs(os.path.dirname(grubcfgpth), 0o755, exist_ok=True)
with open(grubcfgpth, 'w') as grubout:
grubout.write(grubcfg)
ipxeargs = kernelargs