From: Thomas Lamprecht Date: Tue, 17 Nov 2020 12:04:43 +0000 (+0100) Subject: PBS client: get snapshots: avoid over generic param has X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=2113c7e8e9a6f15743339ca09651047b10879b20 PBS client: get snapshots: avoid over generic param has Signed-off-by: Thomas Lamprecht --- 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); };