From b6dff5693c6a794c63f197b6da8484bf9be1c30b Mon Sep 17 00:00:00 2001 From: Mathieu Moran Date: Mon, 26 Oct 2026 18:13:18 -0400 Subject: [PATCH] proxmox: read out-data from the guest agent JSON PVE 8 returns out-data/err-data instead of out/err, so every backend_ps call was parsed as an empty string: Test-Path guards said "missing" and backend_wait never saw True. Accept both key names. --- session1/platforms/proxmox/backends/proxmox.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/session1/platforms/proxmox/backends/proxmox.sh b/session1/platforms/proxmox/backends/proxmox.sh index 2f14fc6..0d51b54 100644 --- a/session1/platforms/proxmox/backends/proxmox.sh +++ b/session1/platforms/proxmox/backends/proxmox.sh @@ -286,8 +286,11 @@ try: except Exception: print("could not parse guest agent output", file=sys.stderr) sys.exit(2) -out = data.get("out", "").replace("\x00", "") -err = data.get("err", "").replace("\x00", "") +# PVE >= 8 names the fields out-data/err-data; older versions used out/err. +out = (data.get("out") or data.get("out-data") or "").replace("\x00", "") +err = (data.get("err") or data.get("err-data") or "").replace("\x00", "") +if data.get("out-truncated"): + err += "\n[output truncated by the guest agent]" sys.stdout.write(out) if err.strip(): sys.stderr.write(err)