Skip to contentSkip to conversation

fix undefined name error

PATCH In review Zhigang Wang 2 participants 2 messages Jul 2, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix undefined name error

hi,

this small patch fixes a undefined name error: mac may be referenced before definition.

thanks,

zhigang

share/tmp/XendDomainInfo.py renamed from XendDomainInfo.py +1 -0
@@ -1227,6 +1227,7 @@
         if rm_cfg:
             if deviceClass == 'vif':
                 if self.domid is not None:
+                    mac = ''
                     for dev_num, dev_info in sxprs:
                         dev_num = int(dev_num)
                         if dev_num == dev:

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel