diff --git a/tools/python/xen/xm/rmlabel.py b/tools/python/xen/xm/rmlabel.py index 6a29a8c20e..0869c6c874 100644 --- a/tools/python/xen/xm/rmlabel.py +++ b/tools/python/xen/xm/rmlabel.py @@ -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