proxmox: parse out-data in the Kali seat verification
Same field-name difference as the Windows path; the seats were configured correctly but the check read an empty string and warned every time.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user