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

Issue 10252044: Juju status supports containers (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 10 months ago by wallyworld
Modified:
10 years, 10 months ago
Reviewers:
mp+169096, thumper, fwereade, jameinel
Visibility:
Public.

Description

Juju status supports containers juju status shows containers nested against their parent machine. The machine id less than function needed to be updated to support container ids. A drive by additional test for adding containers to an injected machine is also included. https://code.launchpad.net/~wallyworld/juju-core/container-status/+merge/169096 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 6

Patch Set 2 : Juju status supports containers #

Total comments: 3

Patch Set 3 : Juju status supports containers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+311 lines, -50 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/status.go View 1 9 chunks +84 lines, -42 lines 0 comments Download
M cmd/juju/status_test.go View 3 chunks +97 lines, -0 lines 0 comments Download
M state/container.go View 3 chunks +15 lines, -3 lines 0 comments Download
M state/export_test.go View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M state/machine.go View 1 chunk +1 line, -1 line 0 comments Download
M state/state.go View 1 2 2 chunks +44 lines, -4 lines 0 comments Download
M state/state_test.go View 1 3 chunks +64 lines, -0 lines 0 comments Download

Messages

Total messages: 8
wallyworld
Please take a look.
10 years, 10 months ago (2013-06-13 02:59:54 UTC) #1
thumper
https://codereview.appspot.com/10252044/diff/1/cmd/juju/status.go File cmd/juju/status.go (left): https://codereview.appspot.com/10252044/diff/1/cmd/juju/status.go#oldcode131 cmd/juju/status.go:131: func (ctxt *statusContext) processMachines() map[string]machineStatus { I don't suppose ...
10 years, 10 months ago (2013-06-13 03:28:00 UTC) #2
wallyworld
Please take a look. https://codereview.appspot.com/10252044/diff/1/cmd/juju/status.go File cmd/juju/status.go (left): https://codereview.appspot.com/10252044/diff/1/cmd/juju/status.go#oldcode131 cmd/juju/status.go:131: func (ctxt *statusContext) processMachines() map[string]machineStatus ...
10 years, 10 months ago (2013-06-13 05:50:09 UTC) #3
fwereade
LGTM modulo quibbling about MachineIdLessThan https://codereview.appspot.com/10252044/diff/6001/state/state.go File state/state.go (right): https://codereview.appspot.com/10252044/diff/6001/state/state.go#newcode390 state/state.go:390: func MachineIdLessThan(id1, id2 string) ...
10 years, 10 months ago (2013-06-13 14:48:31 UTC) #4
wallyworld
Please take a look. https://codereview.appspot.com/10252044/diff/6001/state/state.go File state/state.go (right): https://codereview.appspot.com/10252044/diff/6001/state/state.go#newcode390 state/state.go:390: func MachineIdLessThan(id1, id2 string) bool ...
10 years, 10 months ago (2013-06-14 00:25:09 UTC) #5
thumper
On 2013/06/14 00:25:09, wallyworld wrote: > Please take a look. > > https://codereview.appspot.com/10252044/diff/6001/state/state.go > File ...
10 years, 10 months ago (2013-06-14 02:00:44 UTC) #6
jameinel
A small tweak about how you express mod 2, but otherwise LGTM https://codereview.appspot.com/10252044/diff/6001/state/state.go File state/state.go ...
10 years, 10 months ago (2013-06-16 08:28:24 UTC) #7
wallyworld
10 years, 10 months ago (2013-06-16 11:13:18 UTC) #8
On 2013/06/16 08:28:24, jameinel wrote:
> A small tweak about how you express mod 2, but otherwise
> LGTM
> 
> https://codereview.appspot.com/10252044/diff/6001/state/state.go
> File state/state.go (right):
> 
> https://codereview.appspot.com/10252044/diff/6001/state/state.go#newcode407
> state/state.go:407: return m1 < m2
> You have an int, and as near as I can tell, go does support the '%' operator:
> http://golang.org/ref/spec
> 
> So this could be either:
> 
> if x % 2 == 1
> 
> or since it works in binary
> 
> if x & 1 == 1
> 
> I don't really care, but using math.Mod(float()) seems very strange here.

Thanks for that. I didn't think there was a mod operator. Will fix.
Sign in to reply to this message.

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