Commit 55d07491 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

slaprunner: Fix htpasswd use of a former options class

parent 0fcf4f14
...@@ -85,7 +85,7 @@ def saveSession(config, account): ...@@ -85,7 +85,7 @@ def saveSession(config, account):
# XXX Cedric Le N order of account list values suppose to be fixed # XXX Cedric Le N order of account list values suppose to be fixed
# Remove former file to avoid aoutdated accounts # Remove former file to avoid aoutdated accounts
os.remove(htpasswdfile) os.remove(htpasswdfile)
passwd = HtpasswdFile(htpasswdfile, create=options.create) passwd = HtpasswdFile(htpasswdfile, create=True)
passwd.update(account[0], account[1]) passwd.update(account[0], account[1])
passwd.save() passwd.save()
return True return True
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment