mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 18:21:39 +01:00
Ignore exceptions in the get_all_methods call.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
23feb407a1
commit
d043ecebc5
1 file changed
+6
-3
@@ -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)
|
||||
|
||||