]> git.proxmox.com Git - pve-storage.git/commitdiff
pbs: fix namespace handling in list_volumes
authorFabian Ebner <f.ebner@proxmox.com>
Fri, 15 Jul 2022 10:47:51 +0000 (12:47 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 15 Jul 2022 11:35:37 +0000 (13:35 +0200)
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 <f.ebner@proxmox.com>
PVE/Storage/PBSPlugin.pm

index 4c1b58c2ea04af8ab751ced60377ebbc7c7ff136..56632caa63c0dd40c7205bc39205498641f30dc0 100644 (file)
@@ -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 $@;