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 <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner
2022-07-15 12:47:51 +02:00
committed by Thomas Lamprecht
parent 752a0bcabb
commit ad3666d716

View 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 $@;