Merge lp:~james-page/charm-helpers/fix_hookenv_misc into lp:charm-helpers
Proposed by
James Page
Status: | Merged |
---|---|
Merged at revision: | 51 |
Proposed branch: | lp:~james-page/charm-helpers/fix_hookenv_misc |
Merge into: | lp:charm-helpers |
Diff against target: |
67 lines (+30/-2) 2 files modified
charmhelpers/core/hookenv.py (+2/-2) tests/core/test_hookenv.py (+28/-0) |
To merge this branch: | bzr merge lp:~james-page/charm-helpers/fix_hookenv_misc |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Adam Gandelman (community) | Approve | ||
Review via email:
|
Description of the change
Fixup misc edge cases with relation_ids and related_units
peer and container scoped relations behave a little differently to inter
container relations in that the JSON output can return null which results
in None being returned to the caller of relation_ids and related_units.
This fix works around this by returning an empty array in these instances.
To post a comment you must log in.