mon_command now returns a hash ref. Only the data is of interest.
Signed-off-by: Aaron Lauterer <[email protected]>
---
Needs to be coordinated with librados2-perl changes from patch 1
PVE/Storage/RBDPlugin.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PVE/Storage/RBDPlugin.pm b/PVE/Storage/RBDPlugin.pm
index e287e28..f8fcab7 100644
--- a/PVE/Storage/RBDPlugin.pm
+++ b/PVE/Storage/RBDPlugin.pm
@@ -594,7 +594,7 @@ sub status {
my ($class, $storeid, $scfg, $cache) = @_;
my $rados = $librados_connect->($scfg, $storeid);
- my $df = $rados->mon_command({ prefix => 'df', format => 'json' });
+ my $df = $rados->mon_command({ prefix => 'df', format => 'json' })->{data};
my ($d) = grep { $_->{name} eq $scfg->{pool} } @{$df->{pools}};
--
2.30.2
_______________________________________________
pve-devel mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel