From 2113c7e8e9a6f15743339ca09651047b10879b20 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 17 Nov 2020 13:04:43 +0100 Subject: [PATCH] PBS client: get snapshots: avoid over generic param has Signed-off-by: Thomas Lamprecht --- src/PVE/PBSClient.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); }; -- 2.39.2