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
(from parent 1:
c3c0dfb
)
cleanup: use os.path.join
author
Marc Fiuczynski
<mef@cs.princeton.edu>
Tue, 21 Jul 2009 18:50:24 +0000
(18:50 +0000)
committer
Marc Fiuczynski
<mef@cs.princeton.edu>
Tue, 21 Jul 2009 18:50:24 +0000
(18:50 +0000)
plugins/specialaccounts.py
patch
|
blob
|
history
diff --git
a/plugins/specialaccounts.py
b/plugins/specialaccounts.py
index
a6c07b0
..
23bd4ae
100644
(file)
--- a/
plugins/specialaccounts.py
+++ b/
plugins/specialaccounts.py
@@
-34,9
+34,9
@@
def GetSlivers(plc, data, conf):
pw_dir = pw_info[5]
# populate account's .ssh/authorized_keys file
- dot_ssh =
pw_dir + '/.ssh'
+ dot_ssh =
os.path.join(pw_dir,'.ssh')
if not os.access(dot_ssh, os.F_OK): os.mkdir(dot_ssh)
- auth_keys =
dot_ssh + '/authorized_keys'
+ auth_keys =
os.path.join(dot_ssh,'authorized_keys')
logger.log("new keys = %s" % auth_keys)
fd, fname = tempfile.mkstemp('','authorized_keys',dot_ssh)