-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: handle ingress relation-broken if event.app==None Fixes [this issue](#189). While handling relation-broken events for ingress, we see either: * event.app=the_departing_app * event.app=None The previous charm logic did not cover the second case, leading to an uncaught KeyError. We aren't sure what controls which of the situations we encounter, but we add error handling here to at least log the event and avoid uncaught exceptions. * tests: add unit test case for relation broken event Adding a test case that confirms we call the logger when handling a relation broken event and the event.app == None. --------- Co-authored-by: Daniela Plascencia <[email protected]>
- Loading branch information
1 parent
696143f
commit b6c442a
Showing
2 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters