Persistent config 'in' operator
Bug #1468737 reported by
Stuart Bishop
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charm Helpers |
Fix Released
|
Undecided
|
Stuart Bishop |
Bug Description
If user provided config is loaded from state, those items are not found using the 'in' operator.
I believe the reason for this is http://
There are tests for the 'in' operator, but they did not actually catch this because the 'main' dictionary was mirroring the contents of the _prev_dict attribute
Related branches
lp:~stub/charm-helpers/fix-config
- Tim Van Steenburgh: Approve
-
Diff: 56 lines (+15/-2)3 files modifiedcharmhelpers/core/hookenv.py (+2/-1)
tests/core/test_hookenv.py (+11/-0)
tests/fetch/test_fetch.py (+2/-1)
Changed in charm-helpers: | |
status: | New → In Progress |
assignee: | nobody → Stuart Bishop (stub) |
Changed in charm-helpers: | |
status: | In Progress → Fix Released |
To post a comment you must log in.