Signed-off-by: Aaron Lauterer <a.laute...@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 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel