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
expects the 'interfaces' key in GetSlivers - review logs to always mention module
[nodemanager.git]
/
plugins
/
specialaccounts.py
diff --git
a/plugins/specialaccounts.py
b/plugins/specialaccounts.py
index
9396062
..
1fa15e1
100644
(file)
--- a/
plugins/specialaccounts.py
+++ b/
plugins/specialaccounts.py
@@
-23,11
+23,11
@@
import logger
import tools
def start(options, conf):
import tools
def start(options, conf):
- logger.log("personkeys plugin starting up...")
+ logger.log("personkeys
:
plugin starting up...")
def GetSlivers(data, conf = None, plc = None):
if 'accounts' not in data:
def GetSlivers(data, conf = None, plc = None):
if 'accounts' not in data:
- logger.log
("specialaccounts: No account information found. DISABLED!"
)
+ logger.log
_missing_data("specialaccounts.GetSlivers",'accounts'
)
return
for account in data['accounts']:
return
for account in data['accounts']:
@@
-45,7
+45,7
@@
def GetSlivers(data, conf = None, plc = None):
if not os.access(dot_ssh, os.F_OK): os.mkdir(dot_ssh)
auth_keys = os.path.join(dot_ssh,'authorized_keys')
if not os.access(dot_ssh, os.F_OK): os.mkdir(dot_ssh)
auth_keys = os.path.join(dot_ssh,'authorized_keys')
- logger.log("new keys = %s" % auth_keys)
+ logger.log("
specialaccounts:
new keys = %s" % auth_keys)
fd, fname = tempfile.mkstemp('','authorized_keys',dot_ssh)
for key in new_keys:
fd, fname = tempfile.mkstemp('','authorized_keys',dot_ssh)
for key in new_keys: