fix: pass Proxmox delete params in query
Deploy Cluster / Terraform (push) Successful in 1m48s
Deploy Cluster / Ansible (push) Failing after 22m31s

This commit is contained in:
2026-04-26 04:32:01 +00:00
parent 440e268e4f
commit 760f0482d4
+6 -2
View File
@@ -198,8 +198,12 @@ jobs:
body = None body = None
req_headers = dict(headers) req_headers = dict(headers)
if data is not None: if data is not None:
body = urllib.parse.urlencode(data).encode() encoded = urllib.parse.urlencode(data)
req_headers["Content-Type"] = "application/x-www-form-urlencoded" if method == "DELETE":
path = f"{path}?{encoded}"
else:
body = encoded.encode()
req_headers["Content-Type"] = "application/x-www-form-urlencoded"
req = urllib.request.Request( req = urllib.request.Request(
f"{endpoint}/api2/json{path}", f"{endpoint}/api2/json{path}",
method=method, method=method,