From b74ff0476e1cee618c7966c9e01df1264ab2647b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabian=20Gr=C3=BCnbichler?= Date: Fri, 17 Jun 2016 16:12:25 +0200 Subject: [PATCH] add @param to foreach_drive --- PVE/QemuServer.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 4226f50..9f3cc0c 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -2645,7 +2645,7 @@ sub vmstatus { } sub foreach_drive { - my ($conf, $func) = @_; + my ($conf, $func, @param) = @_; foreach my $ds (valid_drive_names()) { next if !defined($conf->{$ds}); @@ -2653,7 +2653,7 @@ sub foreach_drive { my $drive = parse_drive($ds, $conf->{$ds}); next if !$drive; - &$func($ds, $drive); + &$func($ds, $drive, @param); } } -- 2.39.2