Skip to content
Snippets Groups Projects
Unverified Commit 43c90f1a authored by Max Adamo's avatar Max Adamo
Browse files

fix syntax error

parent d3a91347
No related branches found
No related tags found
No related merge requests found
......@@ -96,8 +96,8 @@ if __name__ == "__main__":
for certname in ['cert.pem', 'chain.pem', 'fullchain.pem']:
certpath = os.path.join(BASEDIR, DOMAIN, certname)
if os.access(certpath), os.W_OK):
with open(certpath), 'r') as certfile:
if os.access(certpath, os.W_OK):
with open(certpath, 'r') as certfile:
certdata_local = certfile.read()
domain_underscored = DOMAIN.replace('.', '_')
# let's rename everything to .crt, which is what we normally use
......
......@@ -97,8 +97,8 @@ if __name__ == "__main__":
# upload certificates to Redis
for certname in ['cert.pem', 'chain.pem', 'fullchain.pem']:
certpath = os.path.join(BASEDIR, DOMAIN, certname)
if os.access(certpath), os.W_OK):
with open(certpath), 'r') as certfile:
if os.access(certpath, os.W_OK):
with open(certpath, 'r') as certfile:
certdata_local = certfile.read()
domain_underscored = DOMAIN.replace('.', '_')
certname_underscored = certname.replace('.', '_')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment