|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] Ignore exceptions in the get_all_methods
# 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
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] Ignore exceptions in the get_all_methods call.,
Xen patchbot-unstable <=
|
Previous by Date: |
[Xen-changelog] [xen-unstable] Remove stillborn DTD section, in favour of an upcoming new doc for the xm, Xen patchbot-unstable |
Next by Date: |
[Xen-changelog] [xen-unstable] Implement session.last_active, session.this_host, session.get_record,, Xen patchbot-unstable |
Previous by Thread: |
[Xen-changelog] [xen-unstable] Remove stillborn DTD section, in favour of an upcoming new doc for the xm, Xen patchbot-unstable |
Next by Thread: |
[Xen-changelog] [xen-unstable] Implement session.last_active, session.this_host, session.get_record,, Xen patchbot-unstable |
Indexes: |
[Date]
[Thread]
[Top]
[All Lists] |
|
|
|
|