direct-io.hg

changeset 11688:432bf17b3b09

[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 51fa58f0583b
children 6df04adab323
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 @@ -57,7 +57,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