ia64/xen-unstable

changeset 12184:8a0274d6eebc

[XM] Fix rmlabel filename assignment

The patch fixes a bug in the rmlabel tool.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
author Alastair Tse <atse@xensource.com>
date Tue Oct 03 11:24:48 2006 +0100 (2006-10-03)
parents 3cccc8697a13
children 81a80d86f77f
files tools/python/xen/xm/rmlabel.py
line diff
     1.1 --- a/tools/python/xen/xm/rmlabel.py	Tue Oct 03 10:48:07 2006 +0100
     1.2 +++ b/tools/python/xen/xm/rmlabel.py	Tue Oct 03 11:24:48 2006 +0100
     1.3 @@ -60,7 +60,8 @@ def rm_domain_label(configfile):
     1.4      fd = None
     1.5      file = None
     1.6      if configfile[0] == '/':
     1.7 -        fd = open(configfile, "rb")
     1.8 +        file = configfile
     1.9 +        fd = open(file, "rb")
    1.10      else:
    1.11          for prefix in [".", "/etc/xen"]:
    1.12              file = prefix + "/" + configfile