Skip to content

Commit

Permalink
revert return line of _get_loadbalancer_status function (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
Abuelodelanada authored Jul 17, 2024
1 parent 72da43a commit f131f2a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1188,9 +1188,7 @@ def _get_loadbalancer_status(namespace: str, service_name: str) -> Optional[str]
if not (ingress_address := ingress_addresses[0]):
return None

# `return ingress_address.hostname` removed since the hostname (external hostname)
# is configured through juju config so it is not necessary to retrieve that from K8s.
return ingress_address.ip
return ingress_address.hostname or ingress_address.ip


def _get_relation_type(relation: Relation) -> _IngressRelationType:
Expand Down

0 comments on commit f131f2a

Please sign in to comment.