status: rrddata: use new pve-storage-9.0 rrd location if file is present
Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com> Link: https://lore.proxmox.com/20250726010626.1496866-26-a.lauterer@proxmox.com
This commit is contained in:
committed by
Thomas Lamprecht
parent
868de9b1a8
commit
0dc6c9d39c
@ -415,11 +415,10 @@ __PACKAGE__->register_method({
|
||||
code => sub {
|
||||
my ($param) = @_;
|
||||
|
||||
return PVE::RRD::create_rrd_data(
|
||||
"pve2-storage/$param->{node}/$param->{storage}",
|
||||
$param->{timeframe},
|
||||
$param->{cf},
|
||||
);
|
||||
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});
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user