[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xm: Fix 2nd argument value of arg_check() for a few xm commands.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1204623308 0
# Node ID f76f151a74319332fa997c60c5719b6cd1802226
# Parent  7530c4dba8a5d8970d23f502369a342ee82a6541
xm: Fix 2nd argument value of arg_check() for a few xm commands.
Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
---
 tools/python/xen/xm/main.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff -r 7530c4dba8a5 -r f76f151a7431 tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py       Mon Mar 03 15:19:39 2008 +0000
+++ b/tools/python/xen/xm/main.py       Tue Mar 04 09:35:08 2008 +0000
@@ -2249,7 +2249,7 @@ def parse_pci_configuration(args):
     return (dom, pci)
 
 def xm_pci_attach(args):
-    arg_check(args, 'xm_pci_attach', 5, 6)
+    arg_check(args, 'pci-attach', 5, 6)
     (dom, pci) = parse_pci_configuration(args)
     server.xend.domain.device_create(dom, pci)
 
@@ -2270,7 +2270,7 @@ def detach(args, deviceClass):
 
 def xm_block_detach(args):
     if serverType == SERVER_XEN_API:
-        arg_check(args, "xm_block_detach", 2, 3)
+        arg_check(args, "block-detach", 2, 3)
         dom = args[0]
         dev = args[1]
         vbd_refs = server.xenapi.VM.get_VBDs(get_single_vm(dom))
@@ -2299,7 +2299,7 @@ def xm_block_detach(args):
 
 def xm_network_detach(args):
     if serverType == SERVER_XEN_API:
-        arg_check(args, "xm_network_detach", 2, 3)
+        arg_check(args, "network-detach", 2, 3)
         dom = args[0]
         devid = args[1]
         vif_refs = server.xenapi.VM.get_VIFs(get_single_vm(dom))
@@ -2318,7 +2318,7 @@ def xm_network_detach(args):
 
 
 def xm_pci_detach(args):
-    arg_check(args, 'xm_pci_detach', 2, 2)
+    arg_check(args, 'pci-detach', 2)
     dom = args[0]
     dev = args[1]
     server.xend.domain.destroyDevice(dom, 'dpci', dev)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.