Skip to content

Commit

Permalink
Check HTTPS for site is provisioned before showing HTTPS active
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinbalani committed Nov 20, 2022
1 parent c74740e commit 842cb47
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion control/webapp/inspect_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ def lookup_website(prefix, is_member):
domains = []
for domain in web["vhosts"]:
domains += [domain.domain, "www.{}".format(domain.domain)]
cert_records = sess.query(srcf.database.HTTPSCert.domain).filter(srcf.database.HTTPSCert.domain.in_(domains))
cert_records = (
sess.query(srcf.database.HTTPSCert.domain)
.filter(srcf.database.HTTPSCert.domain.in_(domains))
.filter(srcf.database.HTTPSCert.provisioned)
)
certs = set()
for record in cert_records:
name = record[0]
Expand Down

0 comments on commit 842cb47

Please sign in to comment.