Commit c8ab567e authored by Antoine Millet's avatar Antoine Millet

Added list command to the SpvHandler.

parent 9db6b8ff
......@@ -118,7 +118,20 @@ class SpvHandler(OnlineCCHandler):
Handler binded to 'spv' role.
'''
pass
@listed
def list(self, conn, query):
'''
List all objects registered on this instance.
:param query: the query to select objects to show
'''
logging.debug('Executed list function with query %s', query)
objects, tags = self._server.list(query, return_toshow=True)
order = OrderedSet(['id'])
if tags is not None:
order |= OrderedSet(tags)
return {'objects': objects, 'order': list(order)}
class HypervisorHandler(OnlineCCHandler):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment