mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
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:
1 parent
14fbdbd3d3
commit
f6833dff97
1 file changed
+1
@@ -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:
|
||||
|
||||