X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fspecialaccounts.py;h=23bd4ae27df1f3ee31bb59408d0374e040b5793a;hb=31d147a70d18ae73e60d427a05aaef6ef93ad3e0;hp=a6c07b007cb467fbb7c4cec1f81bf586967c0988;hpb=c3c0dfb34018f3950b76e9644dfd69026d033b38;p=nodemanager.git diff --git a/plugins/specialaccounts.py b/plugins/specialaccounts.py index a6c07b0..23bd4ae 100644 --- 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)