Commit 1bad4c94 authored by Antoine Millet's avatar Antoine Millet
Browse files

Removed list_vm method.

parent 80fa3ff4
Loading
Loading
Loading
Loading
+0 −24
Original line number Diff line number Diff line
@@ -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: