Loading ccserver/conf.py +2 −2 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ The schema of the json file is described below:: Usage example: >>> conf = CCConf('/etc/cloudcontrol/clients') >>> conf.create_account(login='rms', password='secret', role='client') >>> conf.create_account(login='rms', password='secret', role='cli') >>> conf.create_account(login='server42', password='secret', role='node') >>> print conf.authentify('server42', 'pouet') None Loading @@ -29,7 +29,7 @@ u'node' >>> conf.add_tag('rms', 'admin') >>> conf.show('rms') {'password': 'secret' 'role': 'client', 'role': 'cli', 'tags': {}, 'perms': None} >>> conf.remove_account('rms') Loading ccserver/handlers.py +3 −3 Original line number Diff line number Diff line Loading @@ -113,7 +113,7 @@ class HypervisorHandler(OnlineCCHandler): self._server.sub_unregister(client.login, obj_id) class ClientHandler(OnlineCCHandler): class CliHandler(OnlineCCHandler): ''' Handler binded to 'cli' role. ''' Loading Loading @@ -417,8 +417,8 @@ class WelcomeHandler(CCHandler): ''' ROLES = { 'client': ClientHandler, 'hypervisor': HypervisorHandler, 'cli': CliHandler, 'hv': HypervisorHandler, } @listed Loading Loading
ccserver/conf.py +2 −2 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ The schema of the json file is described below:: Usage example: >>> conf = CCConf('/etc/cloudcontrol/clients') >>> conf.create_account(login='rms', password='secret', role='client') >>> conf.create_account(login='rms', password='secret', role='cli') >>> conf.create_account(login='server42', password='secret', role='node') >>> print conf.authentify('server42', 'pouet') None Loading @@ -29,7 +29,7 @@ u'node' >>> conf.add_tag('rms', 'admin') >>> conf.show('rms') {'password': 'secret' 'role': 'client', 'role': 'cli', 'tags': {}, 'perms': None} >>> conf.remove_account('rms') Loading
ccserver/handlers.py +3 −3 Original line number Diff line number Diff line Loading @@ -113,7 +113,7 @@ class HypervisorHandler(OnlineCCHandler): self._server.sub_unregister(client.login, obj_id) class ClientHandler(OnlineCCHandler): class CliHandler(OnlineCCHandler): ''' Handler binded to 'cli' role. ''' Loading Loading @@ -417,8 +417,8 @@ class WelcomeHandler(CCHandler): ''' ROLES = { 'client': ClientHandler, 'hypervisor': HypervisorHandler, 'cli': CliHandler, 'hv': HypervisorHandler, } @listed Loading