[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 8a0274d6eebc09872b1fb996e2a6102359ed05e2
# Parent  3cccc8697a13d1f7f9f552ccdde79a6b76d34517
[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 3cccc8697a13 -r 8a0274d6eebc 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
@@ -60,7 +60,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®.