[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [XM] Fix rmlabel filename assignment



# HG changeset patch
# User Alastair Tse <atse@xxxxxxxxxxxxx>
# Node ID 432bf17b3b09a126880e372578ad049a645ca9c1
# Parent  51fa58f0583bd72d68b04c9e2ec5ea0fafb40c18
[XM] Fix rmlabel filename assignment

The patch fixes a bug in the rmlabel tool.

Signed-off-by: Stefan Berger <stefanb@xxxxxxxxxx>
---
 tools/python/xen/xm/rmlabel.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r 51fa58f0583b -r 432bf17b3b09 tools/python/xen/xm/rmlabel.py
--- a/tools/python/xen/xm/rmlabel.py    Tue Oct 03 10:48:07 2006 +0100
+++ b/tools/python/xen/xm/rmlabel.py    Tue Oct 03 11:24:48 2006 +0100
@@ -57,7 +57,8 @@ def rm_domain_label(configfile):
     fd = None
     file = None
     if configfile[0] == '/':
-        fd = open(configfile, "rb")
+        file = configfile
+        fd = open(file, "rb")
     else:
         for prefix in [".", "/etc/xen"]:
             file = prefix + "/" + configfile

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.