Skip to contentSkip to conversation

Fix xm rmlabel and xm dumppolicy

PATCH New Masaki Kanno 1 participant 1 message Sep 27, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix xm rmlabel and xm dumppolicy

Hi,

I saw the following error messages.

# xm rmlabel file:/xen/xen-test/image/rhel4_1.img
Error: Sub Command rmlabel not found!

#xm dumppolicy
Unexpected error: exceptions.ImportError

Please report to [email protected]
Traceback (most recent call last):
File "/usr/sbin/xm", line 10, in ?
main.main(sys.argv)
File "//usr/lib/python/xen/xm/main.py", line 1436, in main
rc = cmd(args)
File "<string>", line 1, in <lambda>
File "//usr/lib/python/xen/xm/main.py", line 745, in xm_importcommand

    cmd = __import__(command, globals(), locals(), 'xen.xm')

ImportError: No module named dumppolicyrmlabel

This patch fixes these issues.

Best regards,
Kan

tools/python/xen/xm/main.py +1 -1
diff -r bd811e94d293 tools/python/xen/xm/main.py
@@ -1374,7 +1374,7 @@ IMPORTED_COMMANDS = [
     'cfgbootpolicy',
     'makepolicy',
     'loadpolicy',
-    'dumppolicy'
+    'dumppolicy',
     'rmlabel',
     'getlabel',
     'dry-run',

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel