X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=controller.py;h=826ca495bebb4c3a1e1c0da795b039897a455a53;hb=d3a3b2d3ea98e72183d1cb5497c38badaa0c5863;hp=feca5e936bda6b443a86aed5dcbabd7e6fc300b3;hpb=498a94a7c005d849f1775f84f53933d778674a5b;p=nodemanager.git diff --git a/controller.py b/controller.py index feca5e9..826ca49 100644 --- a/controller.py +++ b/controller.py @@ -1,7 +1,7 @@ # $Id$ # $URL$ -"""Delegate accounts are used to provide secure access to the XMLRPC API. +"""Delegate accounts are used to provide secure access to the XMLRPC API. They are normal Unix accounts with a shell that tunnels XMLRPC requests to the API server.""" from pwd import getpwnam @@ -27,7 +27,7 @@ class Controller(accounts.Account): def is_running(self): logger.verbose("controller: is_running: %s" % self.name) return getpwnam(self.name)[6] == self.SHELL - + def add_shell(shell): """Add to /etc/shells if it's not already there."""