[pve-devel] [PATCH] print_pci_addr : check if $bridges is initialized
Alexandre Derumier
aderumier at odiso.com
Mon Aug 20 13:47:56 CEST 2012
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/QemuServer.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index cc863d5..988bf7b 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -3203,7 +3203,7 @@ sub print_pci_addr {
my $addr = sprintf("0x%x", $devices->{$id}->{addr});
my $bus = $devices->{$id}->{bus};
$res = ",bus=pci.$bus,addr=$addr";
- $bridges->{$bus} = 1;
+ $bridges->{$bus} = 1 if $bridges;
}
return $res;
--
1.7.2.5
More information about the pve-devel
mailing list