#NEWLINE# def lookupByID( self , id ) : #NEWLINE# #INDENT# if ( id in self . _running_vms ) : #NEWLINE# #INDENT# return self . _running_vms [ id ] #NEWLINE# #UNINDENT# raise make_libvirtError ( libvirtError , ( 'Domain not found: no domain with matching id %d' % id ) , error_code = VIR_ERR_NO_DOMAIN , error_domain = VIR_FROM_QEMU )