[pve-devel] applied: [PATCH manager-pve8 v3 2/2] api2tools: extract stats: handle existence of new pve-{type}-9.0 data
Thomas Lamprecht
t.lamprecht at proxmox.com
Thu Jul 17 00:32:45 CEST 2025
Am 15.07.25 um 16:31 schrieb Aaron Lauterer:
> We add a new function to handle different key names, as it would
> otherwise become quite unreadable.
>
> It checks which key format exists for the type and resource:
> * the old pve2-{type} / pve2.3-vm
> * the new pve-{type}-{version}
>
> and will return the one that was found. Since we will only have one key
> per resource, we can return on the first hit.
>
> Signed-off-by: Aaron Lauterer <a.lauterer at proxmox.com>
> ---
>
> Notes:
> changes since:
> RFC:
> * switch from pve9- to pve-{type}-9.0 schema
>
> PVE/API2Tools.pm | 28 ++++++++++++++++++++++++----
> 1 file changed, 24 insertions(+), 4 deletions(-)
>
>
applied, thanks!
More information about the pve-devel
mailing list