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

Issue 6844103: state: add InstanceId type

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 4 months ago by fwereade
Modified:
11 years, 4 months ago
Reviewers:
mp+136740
Visibility:
Public.

Description

state: add InstanceId type ...and use it where appropriate across the codebase. https://code.launchpad.net/~fwereade/juju-core/state-instance-ids/+merge/136740 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 4

Patch Set 2 : state: add InstanceId type #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -71 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/ssh.go View 1 chunk +1 line, -1 line 0 comments Download
M cmd/juju/ssh_test.go View 1 chunk +1 line, -1 line 0 comments Download
M cmd/juju/status.go View 2 chunks +3 lines, -3 lines 0 comments Download
M cmd/jujud/bootstrap.go View 1 chunk +1 line, -1 line 0 comments Download
M cmd/jujud/bootstrap_test.go View 1 chunk +1 line, -1 line 0 comments Download
M environs/dummy/environs.go View 6 chunks +9 lines, -9 lines 0 comments Download
M environs/ec2/ec2.go View 11 chunks +21 lines, -17 lines 0 comments Download
M environs/ec2/export_test.go View 1 chunk +2 lines, -1 line 0 comments Download
M environs/ec2/live_test.go View 5 chunks +5 lines, -4 lines 0 comments Download
M environs/ec2/local_test.go View 2 chunks +2 lines, -2 lines 0 comments Download
M environs/ec2/state.go View 1 chunk +2 lines, -1 line 0 comments Download
M environs/interface.go View 2 chunks +2 lines, -2 lines 0 comments Download
M environs/jujutest/livetests.go View 5 chunks +7 lines, -7 lines 0 comments Download
M environs/jujutest/tests.go View 3 chunks +3 lines, -2 lines 0 comments Download
M environs/openstack/provider.go View 1 chunk +1 line, -1 line 0 comments Download
M state/machine.go View 1 4 chunks +8 lines, -4 lines 0 comments Download
M state/machine_test.go View 1 4 chunks +5 lines, -5 lines 0 comments Download
M state/state_test.go View 3 chunks +3 lines, -3 lines 0 comments Download
M worker/firewaller/firewaller.go View 1 chunk +1 line, -1 line 0 comments Download
M worker/provisioner/provisioner.go View 4 chunks +4 lines, -4 lines 0 comments Download
M worker/provisioner/provisioner_test.go View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4
fwereade
Please take a look.
11 years, 4 months ago (2012-11-28 18:00:44 UTC) #1
rog
On 2012/11/28 18:00:44, fwereade wrote: > Please take a look. LGTM. The friction around goamz/ec2 ...
11 years, 4 months ago (2012-11-28 18:11:54 UTC) #2
niemeyer
LGTM with a couple of trivials: https://codereview.appspot.com/6844103/diff/1/state/machine.go File state/machine.go (right): https://codereview.appspot.com/6844103/diff/1/state/machine.go#newcode12 state/machine.go:12: // InstanceId values ...
11 years, 4 months ago (2012-11-28 18:17:17 UTC) #3
fwereade
11 years, 4 months ago (2012-11-28 18:40:59 UTC) #4
*** Submitted:

state: add InstanceId type

...and use it where appropriate across the codebase.

R=rog, niemeyer
CC=
https://codereview.appspot.com/6844103

https://codereview.appspot.com/6844103/diff/1/state/machine.go
File state/machine.go (right):

https://codereview.appspot.com/6844103/diff/1/state/machine.go#newcode12
state/machine.go:12: // InstanceId values hold provider-specific instance
identifiers.
On 2012/11/28 18:17:17, niemeyer wrote:
> // An InstanceId is a provider-specific identifier associated with an
> // instance (physical or virtual machine allocated in the provider).

Done.

https://codereview.appspot.com/6844103/diff/1/state/machine_test.go
File state/machine_test.go (right):

https://codereview.appspot.com/6844103/diff/1/state/machine_test.go#newcode97
state/machine_test.go:97: c.Assert(string(iid), Equals, "spaceship/0")
On 2012/11/28 18:17:17, niemeyer wrote:
> The casting is more useful on the other side, otherwise iid could well be a
> plain string and that'd still work. Same below.

Done.
Sign in to reply to this message.

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