pbs: fix namespace handling in list_volumes
Beforeaf07f67("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:
committed by
Thomas Lamprecht
parent
752a0bcabb
commit
ad3666d716
@ -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 $@;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user