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

[Xen-changelog] [xen-unstable] xm: Fix cmdHelp() for xm reset



# 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


 


Rackspace

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