From 562fa2da503a7c4786fbf04e14c8b304ff62ba81 Mon Sep 17 00:00:00 2001 From: Faiyaz Ahmed Date: Mon, 2 Mar 2009 17:27:58 +0000 Subject: [PATCH] groups are strings. --- controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.43.0