-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raise errors on unrecoverable problems (#110)
Raise errors for snap install or refresh failure. Raise an error because it's a fatal failure, and juju will auto-retry the hook, which may succeed on retry if the error was transient. Improve blocked status message for if it detects snap not installed or service not active in the status hook. I think Blocked is better than Error status here: - auto retrying the status hook isn't going to fix anything - blocked status lets the charm provide a more useful status message to the user - blocked status will automatically update to active on the next update-status hook once the issue is resolved Partially fixes: #108
- Loading branch information
1 parent
fea84f2
commit 9dc1d8f
Showing
3 changed files
with
19 additions
and
16 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
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