parameters: (self)
return_statement: return names
docstring: List available virtual machines.
          @raise CuckooMachineError: if unable to list virtual machines.
docstring_summary: List available virtual machines.
docstring_tokens: List available virtual machines .
function: def _list(self):
          """List available virtual machines.
          @raise CuckooMachineError: if unable to list virtual machines.
          """
          conn = self._connect()
          try:
              names = conn.listDefinedDomains()
          except libvirt.libvirtError:
              raise CuckooMachineError("Cannot list domains")
          finally:
              self._disconnect(conn)
          return names
function_tokens: def _list ( self ) : conn = self . _connect ( ) try : names = conn . listDefinedDomains ( ) except libvirt . libvirtError : raise CuckooMachineError ( "Cannot list domains" ) finally : self . _disconnect ( conn ) return names