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

Issue 6188068: environs/ec2: rename ImageSpec to instanceSpec

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

Description

environs/ec2: rename ImageSpec to instanceSpec also unexport ImageConstraint. https://code.launchpad.net/~rogpeppe/juju/go-ec2-instance-spec/+merge/105384 Requires: https://code.launchpad.net/~rogpeppe/juju/go-ec2-find-tools/+merge/105382 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : environs/ec2: rename ImageSpec to InstanceSpec #

Patch Set 3 : environs/ec2: rename ImageSpec to InstanceSpec #

Patch Set 4 : environs/ec2: rename ImageSpec to InstanceSpec #

Total comments: 2

Patch Set 5 : environs/ec2: rename ImageSpec to InstanceSpec #

Total comments: 11

Patch Set 6 : environs/ec2: rename ImageSpec to InstanceSpec #

Patch Set 7 : environs/ec2: rename ImageSpec to InstanceSpec #

Total comments: 8

Patch Set 8 : environs/ec2: rename ImageSpec to instanceSpec #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -96 lines) Patch
A [revision details] View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M environs/ec2/ec2.go View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M environs/ec2/image.go View 1 2 3 4 5 6 7 4 chunks +38 lines, -35 lines 0 comments Download
M environs/ec2/image_test.go View 1 2 3 4 5 2 chunks +57 lines, -57 lines 0 comments Download
M environs/ec2/suite_test.go View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 9
rog
Please take a look.
11 years, 11 months ago (2012-05-22 13:29:55 UTC) #1
fwereade
I'm not quite sure about this; if we're tweaking it to fit the emerging context ...
11 years, 11 months ago (2012-05-23 09:19:22 UTC) #2
fwereade
Further to IRC discussion: LGTM so long as my concerns are addressed in a future ...
11 years, 11 months ago (2012-05-23 09:37:26 UTC) #3
rog
Please take a look.
11 years, 11 months ago (2012-05-23 12:50:23 UTC) #4
niemeyer
https://codereview.appspot.com/6188068/diff/3014/environs/ec2/ec2.go File environs/ec2/ec2.go (right): https://codereview.appspot.com/6188068/diff/3014/environs/ec2/ec2.go#newcode212 environs/ec2/ec2.go:212: image, err := FindInstanceSpec(DefaultInstanceConstraint) Variable names and error messages ...
11 years, 11 months ago (2012-05-23 20:32:01 UTC) #5
niemeyer
https://codereview.appspot.com/6188068/diff/3014/environs/ec2/ec2.go File environs/ec2/ec2.go (right): https://codereview.appspot.com/6188068/diff/3014/environs/ec2/ec2.go#newcode212 environs/ec2/ec2.go:212: image, err := FindInstanceSpec(DefaultInstanceConstraint) Variable names and error messages ...
11 years, 11 months ago (2012-05-23 20:32:01 UTC) #6
rog
Please take a look. https://codereview.appspot.com/6188068/diff/3014/environs/ec2/ec2.go File environs/ec2/ec2.go (right): https://codereview.appspot.com/6188068/diff/3014/environs/ec2/ec2.go#newcode212 environs/ec2/ec2.go:212: image, err := FindInstanceSpec(DefaultInstanceConstraint) On ...
11 years, 11 months ago (2012-05-24 10:14:03 UTC) #7
niemeyer
LGTM https://codereview.appspot.com/6188068/diff/20001/environs/ec2/ec2.go File environs/ec2/ec2.go (right): https://codereview.appspot.com/6188068/diff/20001/environs/ec2/ec2.go#newcode214 environs/ec2/ec2.go:214: return nil, fmt.Errorf("cannot find instance: %v", err) s/instance/an ...
11 years, 11 months ago (2012-05-24 14:20:12 UTC) #8
rog
11 years, 11 months ago (2012-05-24 14:27:51 UTC) #9
*** Submitted:

environs/ec2: rename ImageSpec to instanceSpec

also unexport ImageConstraint.

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

https://codereview.appspot.com/6188068/diff/20001/environs/ec2/ec2.go
File environs/ec2/ec2.go (right):

https://codereview.appspot.com/6188068/diff/20001/environs/ec2/ec2.go#newcode214
environs/ec2/ec2.go:214: return nil, fmt.Errorf("cannot find instance: %v", err)
On 2012/05/24 14:20:12, niemeyer wrote:
> s/instance/an instance satisfying the constraints/?

Done.

https://codereview.appspot.com/6188068/diff/20001/environs/ec2/image.go
File environs/ec2/image.go (right):

https://codereview.appspot.com/6188068/diff/20001/environs/ec2/image.go#newco...
environs/ec2/image.go:12: type instanceConstraint struct {
On 2012/05/24 14:20:12, niemeyer wrote:
> Feels like going in the opposite direction we should go. I'd prefer to have
this
> moved to environs now, rather than renaming all fields and fixing code after
> that.
> 
> You said you want to do it in a follow up branch. That's fine by me too.

will do.

https://codereview.appspot.com/6188068/diff/20001/environs/ec2/image.go#newco...
environs/ec2/image.go:46: coldaily
On 2012/05/24 14:20:12, niemeyer wrote:
> The names here should be consistent among themselves. It was right before.

Done.

https://codereview.appspot.com/6188068/diff/20001/environs/ec2/image.go#newco...
environs/ec2/image.go:57: // the specified constraints.
On 2012/05/24 14:20:12, niemeyer wrote:
> s/specified constraints/provided constraints/; just to avoid the
"specification
> given the specified" feeling.

Done.
Sign in to reply to this message.

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