Commit 19ae38d2 authored by Adrien Dorsaz's avatar Adrien Dorsaz

acme_dns_tiny: avoid to compute length of domain_names sequence as an empty sequence is falsy

parent 30c73fb1
Pipeline #256 failed with stages
in 6 minutes and 38 seconds
......@@ -90,7 +90,7 @@ def _get_domain_names(csr_file):
for san in", "):
if san.startswith("DNS:"):
if len(domain_names) == 0:
if not domain_names:
raise ValueError("Didn't find any domain to validate in the provided CSR.")
return domain_names
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment