WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] xm: Fix 2nd argument value of arg_check()

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xm: Fix 2nd argument value of arg_check() for a few xm commands.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 04 Mar 2008 04:50:08 -0800
Delivery-date: Tue, 04 Mar 2008 04:50:03 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] xm: Fix 2nd argument value of arg_check() for a few xm commands., Xen patchbot-unstable <=