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

[Xen-changelog] [xen-unstable] Ignore exceptions in the get_all_methods call.



# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1174671728 0
# Node ID 238ed1c75194e7fa345549716443c3e449a28f2c
# Parent  f434c63b484a13a030e9d43ecc8b3cba45818f38
Ignore exceptions in the get_all_methods call.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 tools/python/xen/xm/main.py |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff -r f434c63b484a -r 238ed1c75194 tools/python/xen/xm/main.py
--- a/tools/python/xen/xm/main.py       Fri Mar 23 17:14:22 2007 +0000
+++ b/tools/python/xen/xm/main.py       Fri Mar 23 17:42:08 2007 +0000
@@ -579,9 +579,12 @@ class Shell(cmd.Cmd):
         cmd.Cmd.__init__(self)
         self.prompt = "xm> "
         if serverType == SERVER_XEN_API:
-            res = server.xenapi._UNSUPPORTED_list_all_methods()
-            for f in res:
-                setattr(Shell, 'do_' + f + ' ', self.default)
+            try:
+                res = server.xenapi._UNSUPPORTED_list_all_methods()
+                for f in res:
+                    setattr(Shell, 'do_' + f + ' ', self.default)
+            except:
+                pass
 
     def preloop(self):
         cmd.Cmd.preloop(self)

_______________________________________________
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®.