From f131f2a4c7997e329c402170fc43bfa5ec17de7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20C=2E=20Mass=C3=B3n?= <939888+Abuelodelanada@users.noreply.github.com> Date: Wed, 17 Jul 2024 10:34:13 -0300 Subject: [PATCH] revert return line of _get_loadbalancer_status function (#385) --- src/charm.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/charm.py b/src/charm.py index 91dcf633..a38bbfd5 100755 --- a/src/charm.py +++ b/src/charm.py @@ -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: