[pve-devel] [PATCH container 1/1] rrddata: use new pve9 rrd location if file is present
Aaron Lauterer
a.lauterer at proxmox.com
Fri May 23 18:37:49 CEST 2025
Signed-off-by: Aaron Lauterer <a.lauterer at proxmox.com>
---
src/PVE/API2/LXC.pm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/PVE/API2/LXC.pm b/src/PVE/API2/LXC.pm
index 5c6ee57..65a5d4a 100644
--- a/src/PVE/API2/LXC.pm
+++ b/src/PVE/API2/LXC.pm
@@ -694,8 +694,10 @@ __PACKAGE__->register_method({
code => sub {
my ($param) = @_;
+ my $path = "pve9-vm/$param->{vmid}";
+ $path = "pve2-vm/$param->{vmid}" if !-e "/var/lib/rrdcached/db/${path}";
return PVE::RRD::create_rrd_data(
- "pve2-vm/$param->{vmid}", $param->{timeframe}, $param->{cf});
+ $path, $param->{timeframe}, $param->{cf});
}});
__PACKAGE__->register_method({
--
2.39.5
More information about the pve-devel
mailing list