From ad3666d71622889867e0cf2c6188f665e9b1da87 Mon Sep 17 00:00:00 2001 From: Fabian Ebner Date: Fri, 15 Jul 2022 12:47:51 +0200 Subject: [PATCH] pbs: fix namespace handling in list_volumes Before af07f67 ("pbs: use vmid parameter in list_snapshots") the namespace was set via do_raw_client_command, but now it needs to be set explicitly here. Fixes: af07f67 ("pbs: use vmid parameter in list_snapshots") Signed-off-by: Fabian Ebner --- PVE/Storage/PBSPlugin.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PVE/Storage/PBSPlugin.pm b/PVE/Storage/PBSPlugin.pm index 4c1b58c..56632ca 100644 --- a/PVE/Storage/PBSPlugin.pm +++ b/PVE/Storage/PBSPlugin.pm @@ -720,6 +720,7 @@ sub list_volumes { my $param = {}; $param->{'backup-id'} = "$vmid" if defined($vmid); + $param->{'ns'} = "$scfg->{namespace}" if defined($scfg->{namespace}); my $data = eval { $conn->get("/api2/json/admin/datastore/$datastore/snapshots", $param); }; die "error listing snapshots - $@" if $@;