mirror of
https://git.proxmox.com/git/pve-common
synced 2025-08-16 21:05:20 +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);
|
return file_get_contents($encfile);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# lists all snapshots, optionally limited to a specific group
|
||||||
sub get_snapshots {
|
sub get_snapshots {
|
||||||
my ($self, $opts) = @_;
|
my ($self, $group) = @_;
|
||||||
|
|
||||||
my $param = [];
|
my $param = [];
|
||||||
push @$param, $opts->{group} if defined($opts->{group});
|
push @$param, $group if defined($group);
|
||||||
|
|
||||||
return run_client_cmd($self, "snapshots", $param);
|
return run_client_cmd($self, "snapshots", $param);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user