mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +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
2763180650
commit
b4c2b3ae59
1 file changed
+2
-1
@@ -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
|
||||
|
||||