WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] xend: fix an undefined name error: mac ma

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xend: fix an undefined name error: mac may be referenced before definition.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 02 Jul 2009 08:51:11 -0700
Delivery-date: Thu, 02 Jul 2009 08:53:16 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1246530888 -3600
# Node ID 027ea584362312baac385d85c81cbe31c3e76ba9
# Parent  01275396910a108f5b58c06ebd933f5b2d39609f
xend: fix an undefined name error: mac may be referenced before definition.

Signed-off-by: Zhigang Wang <zhigang.x.wang@xxxxxxxxxx>
---
 tools/python/xen/xend/XendDomainInfo.py |    1 +
 1 files changed, 1 insertion(+)

diff -r 01275396910a -r 027ea5843623 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Thu Jul 02 11:33:43 2009 +0100
+++ b/tools/python/xen/xend/XendDomainInfo.py   Thu Jul 02 11:34:48 2009 +0100
@@ -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:

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xend: fix an undefined name error: mac may be referenced before definition., Xen patchbot-unstable <=