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 cmdHelp() for xm reset

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xm: Fix cmdHelp() for xm reset
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 25 Apr 2008 06:30:18 -0700
Delivery-date: Fri, 25 Apr 2008 06:31:07 -0700
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 1209127205 -3600
# Node ID ffa511df6c2339ac19cee884bfcb254394031c77
# Parent  6032730df2eb844a81b55421f5dbada4dc3e295d
xm: Fix cmdHelp() for xm reset

Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
---
 tools/python/xen/xm/main.py |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff -r 6032730df2eb -r ffa511df6c23 tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py       Fri Apr 25 13:38:22 2008 +0100
+++ b/tools/python/xen/xm/main.py       Fri Apr 25 13:40:05 2008 +0100
@@ -417,10 +417,11 @@ def cmdHelp(cmd):
 def cmdHelp(cmd):
     """Print help for a specific subcommand."""
     
-    for fc in SUBCOMMAND_HELP.keys():
-        if fc[:len(cmd)] == cmd:
-            cmd = fc
-            break
+    if not SUBCOMMAND_HELP.has_key(cmd):
+        for fc in SUBCOMMAND_HELP.keys():
+            if fc[:len(cmd)] == cmd:
+                cmd = fc
+                break
     
     try:
         args, desc = SUBCOMMAND_HELP[cmd]

_______________________________________________
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 cmdHelp() for xm reset, Xen patchbot-unstable <=