Commit 76ada41d authored by Antoine Millet's avatar Antoine Millet
Browse files

Removed useless role_name class attribute.

parent 5d2afa97
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -14,13 +14,8 @@ def listed(func):
class CCHandler(RpcHandler):
    '''
    Base class for handlers of CloudControl server.

    :cvar role_name: the name of the role binded to the handler
    :type role_name: str or None is not applicable
    '''
    
    role_name = None

    def __init__(self, server):
        self._server = server

@@ -53,16 +48,13 @@ class HypervisorHandler(OnlineCCHandler):
    '''
    Handler binded to 'node' role.
    '''
    role_name = 'hypervisor'

    pass

class ClientHandler(OnlineCCHandler):
    '''
    Handler binded to 'cli' role.
    '''

    role_name = 'client'

    @pure
    @listed
    def list(self, query):