From aa8cd93ca44df282687c66145a3033f12bda14f3 Mon Sep 17 00:00:00 2001 From: Aaron Lauterer Date: Mon, 3 Nov 2025 23:00:22 +0100 Subject: [PATCH] status: rrddata: use fixed pve-storage-9.0 path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Because we now always create it, should it not exists and old data is used from the old files. Signed-off-by: Aaron Lauterer Reviewed-by: Laurențiu Leahu-Vlăducu Tested-by: Laurențiu Leahu-Vlăducu Link: https://lore.proxmox.com/20251103220024.2488005-8-a.lauterer@proxmox.com --- src/PVE/API2/Storage/Status.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/PVE/API2/Storage/Status.pm b/src/PVE/API2/Storage/Status.pm index 8107401..e256313 100644 --- a/src/PVE/API2/Storage/Status.pm +++ b/src/PVE/API2/Storage/Status.pm @@ -498,10 +498,11 @@ __PACKAGE__->register_method({ code => sub { my ($param) = @_; - my $path = "pve-storage-9.0/$param->{node}/$param->{storage}"; - $path = "pve2-storage/$param->{node}/$param->{storage}" - if !-e "/var/lib/rrdcached/db/${path}"; - return PVE::RRD::create_rrd_data($path, $param->{timeframe}, $param->{cf}); + return PVE::RRD::create_rrd_data( + "pve-storage-9.0/$param->{node}/$param->{storage}", + $param->{timeframe}, + $param->{cf}, + ); }, });