Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1897)

Issue 6307072: state: implement Machine.Units

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by rog
Modified:
11 years, 10 months ago
Reviewers:
mp+109572
Visibility:
Public.

Description

state: implement Machine.Units original merge proposal: https://codereview.appspot.com/6256070/ https://code.launchpad.net/~rogpeppe/juju-core/go-state-units-for-machine/+merge/109572 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state: implement Machine.Units #

Total comments: 2

Patch Set 3 : state: implement Machine.Units #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -5 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M state/internal_test.go View 1 chunk +2 lines, -2 lines 0 comments Download
M state/machine.go View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
M state/state_test.go View 1 chunk +64 lines, -0 lines 0 comments Download
M state/topology.go View 1 chunk +15 lines, -0 lines 0 comments Download
M state/unit.go View 1 chunk +12 lines, -0 lines 0 comments Download
M state/watcher.go View 1 2 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 5
rog
Please take a look.
11 years, 10 months ago (2012-06-11 06:55:25 UTC) #1
TheMue
LGTM
11 years, 10 months ago (2012-06-11 06:59:52 UTC) #2
fwereade
LGTM
11 years, 10 months ago (2012-06-11 08:13:19 UTC) #3
niemeyer
LGTM https://codereview.appspot.com/6307072/diff/2001/state/topology.go File state/topology.go (right): https://codereview.appspot.com/6307072/diff/2001/state/topology.go#newcode405 state/topology.go:405: func (t *topology) UnitsForMachine(machineKey string) []string { We're ...
11 years, 10 months ago (2012-06-12 13:38:20 UTC) #4
rog
11 years, 10 months ago (2012-06-12 13:47:03 UTC) #5
*** Submitted:

state: implement Machine.Units

original merge proposal:
https://codereview.appspot.com/6256070/

R=TheMue, fwereade, niemeyer
CC=
https://codereview.appspot.com/6307072

https://codereview.appspot.com/6307072/diff/2001/state/topology.go
File state/topology.go (right):

https://codereview.appspot.com/6307072/diff/2001/state/topology.go#newcode405
state/topology.go:405: func (t *topology) UnitsForMachine(machineKey string)
[]string {
On 2012/06/12 13:38:20, niemeyer wrote:
> We're missing a test for this. I guess we're alright, given that the Units
> implementation is pretty much exploring the functionality of this function
> exactly, with good testing.

that was my thought. this is an internal function after all.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b