[pve-devel] [PATCH qemu-server 1/5] add @param to foreach_drive

Fabian Grünbichler f.gruenbichler at proxmox.com
Fri Jun 17 16:12:25 CEST 2016


---
 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.1.4





More information about the pve-devel mailing list