PBSPlugin: list_volumes: filter by vmid if specified

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fabian Ebner
2020-06-04 11:08:33 +02:00
committed by Thomas Lamprecht
parent 0f0d99a3e5
commit ddf7fdaa82

View File

@ -291,6 +291,7 @@ sub list_volumes {
next if !($btype eq 'vm' || $btype eq 'ct');
next if $bid !~ m/^\d+$/;
next if defined($vmid) && $bid ne $vmid;
my $btime = strftime("%FT%TZ", gmtime($epoch));
my $volname = "backup/${btype}/${bid}/${btime}";