X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=controller.py;h=0732ee59bd57e2da998373e65b4505da10c24d43;hb=48a73b18fd7daed13c645c1adeddb57b560e7a2d;hp=9979370d5398c92e2f6ea47ec48e2a8bda552594;hpb=90fe600a45aa0002e35fd47b80757ce2c246714b;p=nodemanager.git diff --git a/controller.py b/controller.py index 9979370..0732ee5 100644 --- a/controller.py +++ b/controller.py @@ -7,9 +7,9 @@ from grp import getgrnam import logger import tools -import accounts +import account -class Controller(accounts.Account): +class Controller(account.Account): SHELL = '/usr/bin/forward_api_calls' # tunneling shell TYPE = 'controller.Controller' @@ -34,5 +34,5 @@ def add_shell(shell): etc_shells.close() if shell not in valid_shells: etc_shells = open('/etc/shells', 'a') - print >>etc_shells, shell + print(shell, file=etc_shells) etc_shells.close()