From 0ba47ab6fef533138f5a9c486ad9706800c25a0f Mon Sep 17 00:00:00 2001 From: Faiyaz Ahmed Date: Tue, 4 Aug 2009 17:09:41 +0000 Subject: [PATCH] formatting --- plugins/specialaccounts.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/specialaccounts.py b/plugins/specialaccounts.py index 23bd4ae..5debf95 100644 --- a/plugins/specialaccounts.py +++ b/plugins/specialaccounts.py @@ -30,17 +30,17 @@ def GetSlivers(plc, data, conf): # look up account name, which must exist pw_info = pwd.getpwnam(name) uid = pw_info[2] - gid = pw_info[3] + gid = pw_info[3] pw_dir = pw_info[5] # populate account's .ssh/authorized_keys file dot_ssh = os.path.join(pw_dir,'.ssh') 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("new keys = %s" % auth_keys) fd, fname = tempfile.mkstemp('','authorized_keys',dot_ssh) - for key in new_keys: + + for key in new_keys: os.write(fd,key) os.write(fd,'\n') -- 2.43.0