canonical / canonical/mongodb-operator

[Bug] Undefined variable in `config_server_interface.py `

Open
#479 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.