diff --git a/misc/api.func b/misc/api.func index 55a4d6889..516400904 100644 --- a/misc/api.func +++ b/misc/api.func @@ -378,6 +378,12 @@ post_update_to_api() { [[ -z "$error" ]] && error="Unknown error" fi + # Get PVE version for complete record + local pve_version="" + if command -v pveversion &>/dev/null; then + pve_version=$(pveversion 2>/dev/null | awk -F'[/ ]' '{print $2}') || true + fi + local JSON_PAYLOAD JSON_PAYLOAD=$( cat <