diff --git a/src/charm.py b/src/charm.py index b36fed37c..6eee4ba1b 100755 --- a/src/charm.py +++ b/src/charm.py @@ -864,7 +864,6 @@ def _get_relation_config(self) -> [Dict[str, Dict[str, Union[str, bool]]]]: sorted_rhosts = [r_host.split(":")[0] for r_host in read_only_endpoints] sorted_rhosts.sort() r_hosts = ",".join(sorted_rhosts) - r_hosts = ",".join([r_host.split(":")[0] for r_host in read_only_endpoints]) if r_hosts: for r_host in read_only_endpoints: r_port = r_host.split(":")[1]