From 19bee3654e359fd1a93a550be5b5e5740f84835c Mon Sep 17 00:00:00 2001 From: Daniel Markstedt Date: Wed, 27 Oct 2021 11:13:30 -0700 Subject: [PATCH] Cleanup --- src/web/file_cmds.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/web/file_cmds.py b/src/web/file_cmds.py index 918af037..721c046a 100644 --- a/src/web/file_cmds.py +++ b/src/web/file_cmds.py @@ -200,10 +200,10 @@ def download_file_to_iso(scsi_id, url): tmp_full_path = tmp_dir + file_name 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: - return {"status": False, "msg": wget_proc["msg"]} + if req_proc["status"] == False: + return {"status": False, "msg": req_proc["msg"]} iso_proc = run( ["genisoimage", "-hfs", "-o", iso_filename, tmp_full_path], capture_output=True