diff --git a/ccserver/handlers.py b/ccserver/handlers.py index 56ae5a6262ae8ada39af8bdcc934d2305a5fa57d..843b22a6da5a33502fb434f33e1328ee909e723e 100644 --- a/ccserver/handlers.py +++ b/ccserver/handlers.py @@ -61,30 +61,6 @@ class ClientHandler(OnlineCCHandler): role_name = 'client' - @pure - @listed - def list_vm(self): - ''' - List all VMs on nodes. - ''' - - found_vm = [] - async_ids = set() - # Send the asynchronous request to all nodes: - for node in self._server.iterrole('node'): - async_ids.add(node.async_call('list_vm')) - - # Wait for the response: - responses = self._server.manager.wait(frozenset(async_ids), timeout=5) - - # Process the responses: - for resp in responses: - if resp['error'] is None: - for vm in resp['return']: - found_vm.append(vm) - - return tuple(found_vm) - def _list(self, query): # Contains all the objects to be filted: