mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
Attempt to fix #1856
This commit is contained in:
parent
f9e7d880bf
commit
2b3f217ce2
1 changed files with 6 additions and 1 deletions
|
|
@ -205,7 +205,12 @@ def _find_duplicative_certs(config, domains):
|
|||
if candidate_names == set(domains):
|
||||
identical_names_cert = candidate_lineage
|
||||
elif candidate_names.issubset(set(domains)):
|
||||
subset_names_cert = candidate_lineage
|
||||
# This logic finds and returns the largest subset-names cert
|
||||
# in the case where there are several available.
|
||||
if subset_names_cert is None:
|
||||
subset_names_cert = candidate_lineage
|
||||
elif len(candidate_names) > len(subset_names_cert.names()):
|
||||
subset_names_cert = candidate_lineage
|
||||
|
||||
return identical_names_cert, subset_names_cert
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue