File tree Expand file tree Collapse file tree 2 files changed +4
-68
lines changed
lib/charms/observability_libs/v0 Expand file tree Collapse file tree 2 files changed +4
-68
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 6262
6363LIBID = "b5cd5cd580f3428fa5f59a8876dcbe6a"
6464LIBAPI = 0
65- LIBPATCH = 5
65+ LIBPATCH = 6
6666
6767
6868class CertChanged (EventBase ):
@@ -101,16 +101,16 @@ def __init__(
101101 peer_relation_name: Must match metadata.yaml.
102102 certificates_relation_name: Must match metadata.yaml.
103103 cert_subject: Custom subject. Name collisions are under the caller's responsibility.
104- extra_sans_dns: Any additional DNS names apart from FQDN.
104+ extra_sans_dns: DNS names. If none are given, use FQDN.
105105 """
106106 super ().__init__ (charm , key )
107107
108108 self .charm = charm
109109 self .cert_subject = cert_subject or charm .unit .name
110110 self .cert_subject = charm .unit .name if not cert_subject else cert_subject
111111
112- # Auto-include the fqdn and drop empty/duplicate sans
113- self .sans_dns = list (set (filter (None , (extra_sans_dns or []) + [ socket .getfqdn ()])))
112+ # Use fqdn only if no SANs were given, and drop empty/duplicate SANs
113+ self .sans_dns = list (set (filter (None , (extra_sans_dns or [socket .getfqdn ()]) )))
114114
115115 self .peer_relation_name = peer_relation_name
116116 self .certificates_relation_name = certificates_relation_name
You can’t perform that action at this time.
0 commit comments