git://git.onelab.eu
/
nodemanager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15f5ee0
)
groups are strings.
author
Faiyaz Ahmed
<faiyaza@cs.princeton.edu>
Mon, 2 Mar 2009 17:27:58 +0000
(17:27 +0000)
committer
Faiyaz Ahmed
<faiyaza@cs.princeton.edu>
Mon, 2 Mar 2009 17:27:58 +0000
(17:27 +0000)
controller.py
patch
|
blob
|
history
diff --git
a/controller.py
b/controller.py
index
a52e148
..
1fc4847
100644
(file)
--- 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)