Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
HomayoonAlimohammadi committed Jan 20, 2025
1 parent a9ab3df commit 4ebc2eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charms/worker/k8s/src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def _get_extra_sans(self):
log.error(f"Failed to get ingress addresses for extra SANs: {e}")

# Add the external load balancer address
if self.external_load_balancer.is_available:
if self.is_control_plane and self.external_load_balancer.is_available:
if external_lb_addr := self._get_external_load_balancer_address():
extra_sans.add(external_lb_addr)
else:
Expand Down

0 comments on commit 4ebc2eb

Please sign in to comment.