~dave-cheney/juju-core/072-cmd-jujud-test-cleanup

Viewing all changes in revision 836.

  • Committer: William Reade
  • Author(s): William Reade
  • Date: 2013-01-15 16:47:50 UTC
  • mfrom: (814.5.5 juju-core)
  • Revision ID: fwereade@gmail.com-20130115164750-cngei55h9l6uyax6
state: EnterScope fixes

EnterScope now takes a settings map, which is used to create or overwrite
the unit relation settings, if and only if a scope document does not
already exist. The overwriting improves the behaviour of units which leave
and then enter the same scope, by preventing stale settings from confusing
remote units.

In addition, RelationUnit no longer has an annoyingly hidden dependency on
the unit's private address; this makes it easier to create a subordinate,
and consequently makes the removal of AddUnitSubordinateTo more manageable.

R=TheMue, rog
CC=
https://codereview.appspot.com/7058073

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: