diff --git a/misc/api.func b/misc/api.func index f4104f833..12b63c5ad 100644 --- a/misc/api.func +++ b/misc/api.func @@ -421,8 +421,14 @@ post_update_to_api() { duration=$(($(date +%s) - INSTALL_START_TIME)) fi - # Update payload: only fields that change (status, error, exit_code, duration, gpu) - # The Go service will find the record by random_id and PATCH only these fields + # Get PVE version + local pve_version="" + if command -v pveversion &>/dev/null; then + pve_version=$(pveversion 2>/dev/null | awk -F'[/ ]' '{print $2}') || true + fi + + # Full payload including all fields - allows record creation if initial call failed + # The Go service will find the record by random_id and PATCH, or create if not found local JSON_PAYLOAD JSON_PAYLOAD=$( cat <All OS - +
- - - - - + + + + + - + + - +
AppStatusOSTypeMethodAppStatusOSTypeMethod ResourcesExit CodeExit Code ErrorCreated ▼
Loading...
Loading...