canonical / canonical/mongodb-operator
[Bug] Undefined variable in `config_server_interface.py `
Open
bug
- Dominant language
- HCL
- Stars
- 14
- Forks
- 15
- Avg merge
- 9h 44m
- Merged PRs (30d)
- 17
Description
* [Here](https://github.com/canonical/mongodb-operator/blob/6/edge/lib/charms/mongodb/v0/config_server_interface.py#L350) the access should be `self.charm.db_initialised = False`.
* Add a test for this case because a unit test would have caught this.
Contributor guide
Research direction
Open lib/charms/mongodb/v0/config_server_interface.py around line 350 and inspect the undefined-variable access. Add a unit test covering this case, then run the relevant unit-test suite. Done means the access uses the intended charm attribute and the regression test passes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mongodb, python
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100