git://git.onelab.eu
/
nodemanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(*) the various modules have a priority; lower gets invoked first
[nodemanager.git]
/
plugins
/
specialaccounts.py
diff --git
a/plugins/specialaccounts.py
b/plugins/specialaccounts.py
index
1fa15e1
..
fb33688
100644
(file)
--- a/
plugins/specialaccounts.py
+++ b/
plugins/specialaccounts.py
@@
-22,6
+22,9
@@
import pwd
import logger
import tools
import logger
import tools
+# right after conf_files
+priority = 3
+
def start(options, conf):
logger.log("personkeys: plugin starting up...")
def start(options, conf):
logger.log("personkeys: plugin starting up...")
@@
-34,6
+37,8
@@
def GetSlivers(data, conf = None, plc = None):
name = account['name']
new_keys = account['keys']
name = account['name']
new_keys = account['keys']
+ logger.log('specialaccounts: dealing with account %s'%name)
+
# look up account name, which must exist
pw_info = pwd.getpwnam(name)
uid = pw_info[2]
# look up account name, which must exist
pw_info = pwd.getpwnam(name)
uid = pw_info[2]