search for: domain_lookup_by_name_or_id

Displaying 1 result from an estimated 1 matches for "domain_lookup_by_name_or_id".

2006 Mar 23
0
Re: [Xen-changelog] Improve error handling, in particular fixing the ProtocolError that is thrown
...endLogging, XendDmesg > from xen.util.xmlrpclib2 import UnixXMLRPCServer, TCPXMLRPCServer > > -from xen.xend.XendClient import XML_RPC_SOCKET > +from xen.xend.XendClient import XML_RPC_SOCKET, ERROR_INVALID_DOMAIN > > def lookup(domid): > - return XendDomain.instance().domain_lookup_by_name_or_id(domid) > + try: > + return XendDomain.instance().domain_lookup_by_name_or_id(domid) > + except exn: > + log.exception(exn) > + raise exn > > def dispatch(domid, fn, args): > info = lookup(domid) > - return getattr(info, fn)(*args) &gt...