Loading ccserver/handlers.py +0 −24 Original line number Diff line number Diff line Loading @@ -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: Loading Loading
ccserver/handlers.py +0 −24 Original line number Diff line number Diff line Loading @@ -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: Loading