From: Faiyaz Ahmed Date: Mon, 2 Mar 2009 17:27:58 +0000 (+0000) Subject: groups are strings. X-Git-Tag: NodeManager-1.7-45~2 X-Git-Url: http://git.onelab.eu/?p=nodemanager.git;a=commitdiff_plain;h=562fa2da503a7c4786fbf04e14c8b304ff62ba81 groups are strings. --- diff --git a/controller.py b/controller.py index a52e148..1fc4847 100644 --- a/controller.py +++ b/controller.py @@ -14,7 +14,7 @@ class Controller(accounts.Account): def create(name, vref = None): add_shell(Controller.SHELL) group = getgrnam("slices")[2] - logger.log_call('/usr/sbin/useradd', '-p', '*', '-g', group, '-s', Controller.SHELL, name) + logger.log_call('/usr/sbin/useradd', '-p', '*', '-g', str(group), '-s', Controller.SHELL, name) @staticmethod def destroy(name): logger.log_call('/usr/sbin/userdel', '-r', name)