This commit is contained in:
Daniel Markstedt 2021-10-27 11:13:30 -07:00
parent 7ec7d45c48
commit 19bee3654e

View File

@ -200,10 +200,10 @@ def download_file_to_iso(scsi_id, url):
tmp_full_path = tmp_dir + file_name tmp_full_path = tmp_dir + file_name
iso_filename = f"{server_info['image_dir']}/{file_name}.iso" iso_filename = f"{server_info['image_dir']}/{file_name}.iso"
wget_proc = download_to_dir(url, tmp_dir) req_proc = download_to_dir(url, tmp_dir)
if wget_proc["status"] == False: if req_proc["status"] == False:
return {"status": False, "msg": wget_proc["msg"]} return {"status": False, "msg": req_proc["msg"]}
iso_proc = run( iso_proc = run(
["genisoimage", "-hfs", "-o", iso_filename, tmp_full_path], capture_output=True ["genisoimage", "-hfs", "-o", iso_filename, tmp_full_path], capture_output=True