Skip to content

Commit

Permalink
Do not try to sign certificates for None if ip not resolved
Browse files Browse the repository at this point in the history
Fixes juju#732
  • Loading branch information
Tilman Baumann committed Sep 27, 2022
1 parent 26efcd0 commit 4231a52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charmhelpers/contrib/openstack/cert_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def add_hostname_cn(self):
if vip:
addresses.append(vip)
self.hostname_entry = {
'cn': get_hostname(ip),
'cn': get_hostname(ip) or ip,
'addresses': addresses}

def add_hostname_cn_ip(self, addresses):
Expand Down

0 comments on commit 4231a52

Please sign in to comment.