Signed-off-by: Aaron Lauterer <a.laute...@proxmox.com> --- Notes: changes since: RFC: * switch from pve9-storage to pve-storage-90 schema
src/PVE/API2/Storage/Status.pm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/PVE/API2/Storage/Status.pm b/src/PVE/API2/Storage/Status.pm index f7c3519..a74b085 100644 --- a/src/PVE/API2/Storage/Status.pm +++ b/src/PVE/API2/Storage/Status.pm @@ -413,11 +413,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}); }, }); -- 2.39.5 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel