xend: fix an undefined name error: mac may be referenced before definition.

Signed-off-by: Zhigang Wang <zhigang.x.wang@oracle.com>
This commit is contained in:
Keir Fraser committed 2009-07-02 11:34:48 +01:00
1 parent 14fbdbd3d3
commit f6833dff97
1 file changed
+1
+1
View File
@@ -1230,6 +1230,7 @@ class XendDomainInfo:
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:
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.