mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-01-10 01:18:01 +03:00
cleanup: get rid of unnecessary closures
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
This commit is contained in:
parent
0091afc795
commit
0b953b8e34
@ -4339,17 +4339,10 @@ sub foreach_volid {
|
|||||||
include_unused => 1,
|
include_unused => 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
PVE::QemuConfig->foreach_volume_full($conf, $include_opts, sub {
|
PVE::QemuConfig->foreach_volume_full($conf, $include_opts, $test_volid);
|
||||||
my ($ds, $drive) = @_;
|
|
||||||
$test_volid->($ds, $drive);
|
|
||||||
});
|
|
||||||
|
|
||||||
foreach my $snapname (keys %{$conf->{snapshots}}) {
|
foreach my $snapname (keys %{$conf->{snapshots}}) {
|
||||||
my $snap = $conf->{snapshots}->{$snapname};
|
my $snap = $conf->{snapshots}->{$snapname};
|
||||||
PVE::QemuConfig->foreach_volume_full($snap, $include_opts, sub {
|
PVE::QemuConfig->foreach_volume_full($snap, $include_opts, $test_volid, $snapname);
|
||||||
my ($ds, $drive) = @_;
|
|
||||||
$test_volid->($ds, $drive, $snapname);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach my $volid (keys %$volhash) {
|
foreach my $volid (keys %$volhash) {
|
||||||
|
Loading…
Reference in New Issue
Block a user