PBSPlugin: list_volumes: filter by vmid if specified
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
0f0d99a3e5
commit
ddf7fdaa82
@ -291,6 +291,7 @@ sub list_volumes {
|
|||||||
|
|
||||||
next if !($btype eq 'vm' || $btype eq 'ct');
|
next if !($btype eq 'vm' || $btype eq 'ct');
|
||||||
next if $bid !~ m/^\d+$/;
|
next if $bid !~ m/^\d+$/;
|
||||||
|
next if defined($vmid) && $bid ne $vmid;
|
||||||
|
|
||||||
my $btime = strftime("%FT%TZ", gmtime($epoch));
|
my $btime = strftime("%FT%TZ", gmtime($epoch));
|
||||||
my $volname = "backup/${btype}/${bid}/${btime}";
|
my $volname = "backup/${btype}/${bid}/${btime}";
|
||||||
|
|||||||
Reference in New Issue
Block a user