Skip to content

Commit

Permalink
Do not close a file in a with context
Browse files Browse the repository at this point in the history
  • Loading branch information
Suraj Ravichandran committed May 3, 2016
1 parent 672961a commit ed8c9d5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/freenas/usr/local/libexec/nas/generate_sssd_conf.py
Expand Up @@ -744,7 +744,6 @@ def add_ldap_section(sc):
path = tempfile.mktemp(dir='/tmp')
with open(path, 'wb+') as f:
f.write(ldap.ldap_auxiliary_parameters)
f.close()

aux_sc = SSSDConf(path=path, cookie=sc.cookie)
os.unlink(path)
Expand Down

0 comments on commit ed8c9d5

Please sign in to comment.