lp:~rogpeppe/pyjuju/state-watcher-cleanup
- Get this branch:
- bzr branch lp:~rogpeppe/pyjuju/state-watcher-cleanup
Branch merges
Branch information
Recent revisions
- 214. By Dave Cheney
-
cmd/jujud: Provisioner should Open it's own state connection
This small branch is extracted from my working copy. By passing the PA
a state.Info, rather than a connected (and possibly shared) state.Conn
it ensures they aren't sharing a single state connection.R=fwereade, rog, niemeyer
CC=
https://codereview. appspot. com/6298061 - 213. By Roger Peppe
-
state: store units inside their respective services
Making this change simplifies a lot of code - no need
to keep a separate sequence numbering system for units,
for example.(original proposal at https:/
/codereview. appspot. com/6247066/) - 210. By Frank Mueller
-
state: Changed relation service mapping in topology.
The first approach mapped roles to service key and relation
name opposite to todays Python implementation. This reduces
the flexibility for future purposes (e.g. multiple peers).
So the mapping has now been changed back from service keys
to relation role and name. - 209. By Gustavo Niemeyer
-
state: rename Environment method to EnvironConfig
R=TheMue, fwereade
CC=
https://codereview. appspot. com/6295048 - 208. By William Reade
-
subordinate service units can now be added to principal service units
This entails the following changes:
* new Service.
AddUnitSubordin ateTo method, which requires a principal unit
* topology.AddUnit now takes an additional principalKey string argument,
which will be empty for a principal unit;
* new topology.UnitPrincipalKe y, which returns the principal unit key for a
subordinate unit or an error for a principal unit;
* new Unit.IsPrincipal method, which returns whether the unit is a principal
unit;
* checks to prevent subordinate units being assigned directly to machines.Most of the diff lines are a result of the change to topology.AddUnit;
sorry for the noise.R=TheMue, niemeyer
CC=
https://codereview. appspot. com/6268050 - 207. By Frank Mueller
-
state: Added the method RemoveRelation() to State.
Relation is now an interface defining the single
method relationKey() to allow a function signature
like today in Python. The implementation is now
named relation and can be accessed via type
assertion.R=niemeyer
CC=
https://codereview. appspot. com/6250076
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:pyjuju