ia64/xen-unstable

changeset 17179:f76f151a7431

xm: Fix 2nd argument value of arg_check() for a few xm commands.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 04 09:35:08 2008 +0000 (2008-03-04)
parents 7530c4dba8a5
children 771c7124bf38
files tools/python/xen/xm/main.py
line diff
     1.1 --- a/tools/python/xen/xm/main.py	Mon Mar 03 15:19:39 2008 +0000
     1.2 +++ b/tools/python/xen/xm/main.py	Tue Mar 04 09:35:08 2008 +0000
     1.3 @@ -2249,7 +2249,7 @@ def parse_pci_configuration(args):
     1.4      return (dom, pci)
     1.5  
     1.6  def xm_pci_attach(args):
     1.7 -    arg_check(args, 'xm_pci_attach', 5, 6)
     1.8 +    arg_check(args, 'pci-attach', 5, 6)
     1.9      (dom, pci) = parse_pci_configuration(args)
    1.10      server.xend.domain.device_create(dom, pci)
    1.11  
    1.12 @@ -2270,7 +2270,7 @@ def detach(args, deviceClass):
    1.13  
    1.14  def xm_block_detach(args):
    1.15      if serverType == SERVER_XEN_API:
    1.16 -        arg_check(args, "xm_block_detach", 2, 3)
    1.17 +        arg_check(args, "block-detach", 2, 3)
    1.18          dom = args[0]
    1.19          dev = args[1]
    1.20          vbd_refs = server.xenapi.VM.get_VBDs(get_single_vm(dom))
    1.21 @@ -2299,7 +2299,7 @@ def xm_block_detach(args):
    1.22  
    1.23  def xm_network_detach(args):
    1.24      if serverType == SERVER_XEN_API:
    1.25 -        arg_check(args, "xm_network_detach", 2, 3)
    1.26 +        arg_check(args, "network-detach", 2, 3)
    1.27          dom = args[0]
    1.28          devid = args[1]
    1.29          vif_refs = server.xenapi.VM.get_VIFs(get_single_vm(dom))
    1.30 @@ -2318,7 +2318,7 @@ def xm_network_detach(args):
    1.31  
    1.32  
    1.33  def xm_pci_detach(args):
    1.34 -    arg_check(args, 'xm_pci_detach', 2, 2)
    1.35 +    arg_check(args, 'pci-detach', 2)
    1.36      dom = args[0]
    1.37      dev = args[1]
    1.38      server.xend.domain.destroyDevice(dom, 'dpci', dev)