Config options remain in hookenv.config() even when unset
Bug #1630706 reported by
Casey Marshall
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charm Helpers |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Steps to reproduce:
With a charm that has a config option without a default value,
- Set the value to something: `juju config mycharm foo=100`
- Observe the config-changed hook fires, and the option is set in hookenv.config()
- Now, unset the value: `juju config --reset mycharm foo`
- When config-changed fires, hookenv.config() still shows {foo: 100}
- However, `juju config mycharm` will show the value is unset. And, I've also confirmed this in the Juju DB.
The problem seems to be that keys are never removed from `/var/lib/
Changed in charm-helpers: | |
status: | New → Fix Released |
To post a comment you must log in.
This was with charmhelpers- 0.9.1.tar. gz btw