[XEND] Prevent exception if PIF does not have a network.

Signed-off-by: Alastair Tse <atse@xensource.com>
This commit is contained in:
Alastair Tse committed 2007-01-04 16:34:19 +00:00
1 parent eddd713445
commit 4b166e2a17
1 file changed
+1 -1
+1 -1
View File
@@ -103,7 +103,7 @@ class XendNode:
saved_pifs = self.state_store.load_state('pif')
if saved_pifs:
for pif_uuid, pif in saved_pifs.items():
if pif['network'] in self.networks:
if pif.get('network') in self.networks:
network = self.networks[pif['network']]
try:
self.PIF_create(pif['name'], pif['MTU'], pif['VLAN'],
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.