Merge ~mariosplivalo/charm-mongodb:status-fix into ~mongodb-charmers/charm-mongodb:master
Proposed by
Mario Splivalo
Status: | Merged |
---|---|
Merged at revision: | 8faa36725b36c34ca625ea88391420083b3a2934 |
Proposed branch: | ~mariosplivalo/charm-mongodb:status-fix |
Merge into: | ~mongodb-charmers/charm-mongodb:master |
Diff against target: |
204 lines (+87/-4) 2 files modified
hooks/hooks.py (+86/-4) hooks/update-status (+1/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stuart Bishop (community) | Approve | ||
Review via email: mp+341289@code.launchpad.net |
Description of the change
This will add update-status hook along with several utility functions that help display mongodb replicaset status in 'juju status', along with the workflow state.
It also calls status-set inside config-changed and replicaset-
To post a comment you must log in.
Looks good.
get_replicaset_ status( ) may return None if things are really screwed, but that is easily fixed. Commented on inline.