This repository has been archived by the owner on Apr 2, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix application_name = None when single cluster relation (#243)
When a cluster relation only has one member, the self.application_name property used when reading application databag returns None during a window of opportunity that is repeated every time a new hook runs. Subsequent handlers eventually set this property but the first handler that runs causes issues (in vault charm for example, by failing to get the current certs and then assuming they don't exist, therefore recreating certs every time update-status runs).
- Loading branch information
1 parent
9aadb59
commit 1db5d0a
Showing
2 changed files
with
370 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