Compare commits

...

2 Commits

Author SHA1 Message Date
32b1fcec58 Merge pull request 'fix: use POST for Proxmox guest agent ping endpoint' (#29) from stage into master
Some checks failed
Terraform Apply / Terraform Apply (push) Has been cancelled
Reviewed-on: #29
2026-02-28 13:03:18 +00:00
c87bb16f10 fix: use POST for Proxmox guest agent ping endpoint
All checks were successful
Terraform Plan / Terraform Plan (push) Successful in 19s
Proxmox returns 501 for GET /agent/ping; switch to POST so tailscale enrollment can detect guest-agent readiness.
2026-02-28 13:02:02 +00:00

View File

@@ -152,7 +152,7 @@ jobs:
while time.time() < deadline:
tries += 1
try:
res = api_request("GET", f"/api2/json/nodes/{target_node}/qemu/{vmid}/agent/ping")
res = api_request("POST", f"/api2/json/nodes/{target_node}/qemu/{vmid}/agent/ping")
if res.get("data") == "pong":
print(f"Guest agent ready for vmid {vmid}", flush=True)
return True