X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=src%2FPVE%2FPBSClient.pm;fp=src%2FPVE%2FPBSClient.pm;h=75b3b507ec82cebd5f5e3ff4dc5334db3b367a60;hp=a108e6f9692fe61383de35b024157640ca376945;hb=2113c7e8e9a6f15743339ca09651047b10879b20;hpb=69a3a5858fb8225b4b314307c598df13d0c48c51 diff --git a/src/PVE/PBSClient.pm b/src/PVE/PBSClient.pm index a108e6f..75b3b50 100644 --- a/src/PVE/PBSClient.pm +++ b/src/PVE/PBSClient.pm @@ -202,11 +202,12 @@ sub autogen_encryption_key { return file_get_contents($encfile); }; +# lists all snapshots, optionally limited to a specific group sub get_snapshots { - my ($self, $opts) = @_; + my ($self, $group) = @_; my $param = []; - push @$param, $opts->{group} if defined($opts->{group}); + push @$param, $group if defined($group); return run_client_cmd($self, "snapshots", $param); };