mirror of
https://git.proxmox.com/git/pve-common
synced 2025-08-14 02:12:10 +00:00
PBS client: get snapshots: avoid over generic param has
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
69a3a5858f
commit
2113c7e8e9
@ -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);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user