[pve-devel] nics hotplug

Alexandre DERUMIER aderumier at odiso.com
Sun Jan 29 10:09:36 CET 2012


I forgot a little thing,
this correct some warning display on a nic is not defined in conf




>From 7b357b86ac2c5c310bd5f1f4ec1d3045f9497420 Mon Sep 17 00:00:00 2001
From: Derumier Alexandre <aderumier at odiso.com>
Date: Sat, 28 Jan 2012 17:07:33 +0100
Subject: [PATCH 4/4] cleanup warning messages


Signed-off-by: Derumier Alexandre <aderumier at odiso.com>
---
 PVE/QemuServer.pm |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 4d9033a..7c600c1 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -2199,6 +2199,7 @@ sub config_to_command {
     push @$cmd, '-m', $conf->{memory} || $defaults->{memory};
 
     for (my $i = 0; $i < $MAX_NETS; $i++) {
+         next if !$conf->{"net$i"};
          my $d = parse_net($conf->{"net$i"});
          next if !$d;
 
-- 
1.7.2.5



More information about the pve-devel mailing list