diff --git a/session1/platforms/proxmox/backends/proxmox.sh b/session1/platforms/proxmox/backends/proxmox.sh index 0d51b54..ce5a1da 100644 --- a/session1/platforms/proxmox/backends/proxmox.sh +++ b/session1/platforms/proxmox/backends/proxmox.sh @@ -628,7 +628,11 @@ SCRIPT "echo ${b64} | base64 -d > /tmp/norbourg-setup.sh; bash /tmp/norbourg-setup.sh" 2>/dev/null) || { warn "$name: setup script failed"; return 1; } - out=$(printf '%s' "$json" | python3 -c 'import json,sys; print(json.load(sys.stdin).get("out",""))' 2>/dev/null) + out=$(printf '%s' "$json" | python3 -c ' +import json, sys +d = json.load(sys.stdin) +sys.stdout.write((d.get("out") or d.get("out-data") or "").replace("\x00", "")) +' 2>/dev/null) if [[ $out == *NET_OK* && $out == *DNS_OK* ]]; then ok "$(printf '%-12s %-14s ready' "$name" "$ip")" else