diff --git a/charms/istio-pilot/src/charm.py b/charms/istio-pilot/src/charm.py index 13a0c0da..428c9138 100755 --- a/charms/istio-pilot/src/charm.py +++ b/charms/istio-pilot/src/charm.py @@ -606,7 +606,7 @@ def _get_ingress_data(self, event) -> dict: f" departing application's name. We assume that the departing application's" f" is not in routes.keys='{list(routes.keys())}'." ) - else: + elif: routes.pop((event.relation, event.app)) return routes