Merge lp://qastaging/~lomov-as/charm-helpers/cloud-foundry-multiple-units-in-relation-context into lp://qastaging/~cf-charmers/charm-helpers/cloud-foundry
Proposed by
Alex Lomov
Status: | Needs review |
---|---|
Proposed branch: | lp://qastaging/~lomov-as/charm-helpers/cloud-foundry-multiple-units-in-relation-context |
Merge into: | lp://qastaging/~cf-charmers/charm-helpers/cloud-foundry |
Diff against target: |
114 lines (+48/-11) 3 files modified
.bzrignore (+2/-1) charmhelpers/core/templating.py (+11/-4) tests/core/test_templating.py (+35/-6) |
To merge this branch: | bzr merge lp://qastaging/~lomov-as/charm-helpers/cloud-foundry-multiple-units-in-relation-context |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Cloud Foundry Charmers | Pending | ||
Review via email: mp+220508@code.qastaging.launchpad.net |
Description of the change
multiple units processing for relation context
As far as we moved relation context to core.templating we need to care about possobility to connect multimple units. Geting information from several units will be useful for etcd and cf-loggregator charms.
To post a comment you must log in.
Unmerged revisions
- 183. By Alex Lomov
-
multiple units functional for relation context
- 182. By Alex Lomov
-
RelationalContext: fix issue with interfaces that have dash in the name
The idea here is fine. I'd suggest that this is a different context type as it implies a different relationship to the template is manages however. Any consumer/template needs to be prepared to iterate a list.
Maybe a subclass called RelationListContext which sets multiple units to True and the base class doesn't expose a way to change this directly, set to False in the class. That way we share the implmentation but it is explicit to the template what they will be consuming.