mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
[XM] Fix rmlabel filename assignment
The patch fixes a bug in the rmlabel tool. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
This commit is contained in:
1 parent
20b5981cde
commit
f4bf67e5fd
1 file changed
+2
-1
@@ -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
|
||||
|
||||