Skip to content

Commit

Permalink
Update views.py
Browse files Browse the repository at this point in the history
  • Loading branch information
doomedraven committed Mar 21, 2024
1 parent c801ad0 commit 3f06c39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/apiv2/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,7 @@ def tasks_status(request, task_id):
complete_folder = hashlib.md5(f"cape-{task_id}".encode()).hexdigest()
# ToDo proper OS version join
dest_folder = f"{guest_env['environ']['TMP']}\\{complete_folder}"
r = requests.post(f"http://{machine.ip}:8000/mkdir", data={"dirpath": dest_folder}, exist_ok=True)
r = requests.post(f"http://{machine.ip}:8000/mkdir", data={"dirpath": dest_folder})
resp = {"error": r.status_code == 200, "data": r.text}
except requests.exceptions.ConnectionError as e:
log.error(e)
Expand Down

0 comments on commit 3f06c39

Please sign in to comment.