https://codereview.appspot.com/6248076/diff/5001/state/util.go#newcode26
state/util.go:26: func AssignUnit(st *State, u *Unit, policy
AssignmentPolicy) (err error) {
On 2012/06/06 10:40:04, niemeyer wrote:
> It's fine to have this as a function in the place where it was. It's a
much
> better spot than here, as it had all the logic surrounding it just a
glance
> away.
*** Submitted:
add state.Assignmen tPolicy type and state.AssignUnit func
R=niemeyer /codereview. appspot. com/6248076
CC=
https:/
https:/ /codereview. appspot. com/6248076/ diff/5001/ state/state_ test.go
File state/state_test.go (right):
https:/ /codereview. appspot. com/6248076/ diff/5001/ state/state_ test.go# newcode1062 test.go: 1062: func (s *StateSuite) TestAddRelation(c *C) {
state/state_
On 2012/06/06 10:40:04, niemeyer wrote:
> This shouldn't be here, I suspect.
Ignored per IRC :).
https:/ /codereview. appspot. com/6248076/ diff/5001/ state/util. go
File state/util.go (right):
https:/ /codereview. appspot. com/6248076/ diff/5001/ state/util. go#newcode26
state/util.go:26: func AssignUnit(st *State, u *Unit, policy
AssignmentPolicy) (err error) {
On 2012/06/06 10:40:04, niemeyer wrote:
> It's fine to have this as a function in the place where it was. It's a
much
> better spot than here, as it had all the logic surrounding it just a
glance
> away.
Done.
https:/ /codereview. appspot. com/6248076/