Merge lp:~mbruzek/charm-helpers/peers into lp:charm-helpers
Proposed by
Matt Bruzek
Status: | Merged |
---|---|
Merged at revision: | 505 |
Proposed branch: | lp:~mbruzek/charm-helpers/peers |
Merge into: | lp:charm-helpers |
Diff against target: |
231 lines (+28/-28) 3 files modified
charmhelpers/coordinator.py (+18/-18) charmhelpers/core/hookenv.py (+5/-5) tests/core/test_hookenv.py (+5/-5) |
To merge this branch: | bzr merge lp:~mbruzek/charm-helpers/peers |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Marco Ceppi | Approve | ||
Cory Johns | Pending | ||
Review via email: mp+280211@code.launchpad.net |
Description of the change
While writing a layer charm that uses reactive and the peers relation we encountered a problem. The peers relation handlers were not called.
With Cory's help we tracked this down to hookenv.py where the code is looking for "peer" and not "peers".
This merge corrects the hookenv.py and the coordination.py file's use of "peers".
The test_hookenv.py originally failed after I made the change so I fixed the test to have the correct "peers" relation in the examples.
To post a comment you must log in.
+1