aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2015-02-03 18:02:12 +0000
committerColin Guthrie <colin@mageia.org>2015-02-03 18:02:12 +0000
commit7b90bc8d4af39858b33e0f80fbd27c6a44e0f7d8 (patch)
treef443a96dfe51c500e3f3cab54ff166abdc4a380d /modules
parent58a254697b6ae3c529ae726896181684f714310f (diff)
downloadpuppet-7b90bc8d4af39858b33e0f80fbd27c6a44e0f7d8.tar
puppet-7b90bc8d4af39858b33e0f80fbd27c6a44e0f7d8.tar.gz
puppet-7b90bc8d4af39858b33e0f80fbd27c6a44e0f7d8.tar.bz2
puppet-7b90bc8d4af39858b33e0f80fbd27c6a44e0f7d8.tar.xz
puppet-7b90bc8d4af39858b33e0f80fbd27c6a44e0f7d8.zip
openssh: Fix python copy/paste error.
Diffstat (limited to 'modules')
-rwxr-xr-xmodules/openssh/templates/ldap-sshkey2file.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/openssh/templates/ldap-sshkey2file.py b/modules/openssh/templates/ldap-sshkey2file.py
index 15c27270..1c474038 100755
--- a/modules/openssh/templates/ldap-sshkey2file.py
+++ b/modules/openssh/templates/ldap-sshkey2file.py
@@ -86,7 +86,7 @@ def write_keys(keys, user, uid, gid):
if fromldap != fromfile:
(fd, tmpname) = tempfile.mkstemp('', 'ldap-sshkey2file-')
os.write(fd, fromldap);
- f.close()
+ os.close(fd)
os.chmod(tmpname, 0600)
os.chown(tmpname, uid, gid)
shutil.move(tmpname, keyfile)