From 44b0bfae594883122665bf87113d0e5c7eb66040 Mon Sep 17 00:00:00 2001 From: jpattWPC Date: Tue, 19 Jul 2022 10:37:26 -0500 Subject: [PATCH] Work around http redireect issue --- vdiclient.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vdiclient.py b/vdiclient.py index 13daaae..4a227d1 100644 --- a/vdiclient.py +++ b/vdiclient.py @@ -237,7 +237,11 @@ def vmaction(vmnode, vmid, vmtype): running = False i = 0 while running == False and i < 30: - jobstatus = G.proxmox.nodes(vmnode).tasks(jobid).status.get() + try: + jobstatus = G.proxmox.nodes(vmnode).tasks(jobid).status.get() + except Exception: + # We ran into a query issue here, going to skip this round and try again + jobstatus = {} if 'exitstatus' in jobstatus: startpop.close() startpop = None