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

Issue 5868051: environs/ec2: set admin-identity correctly in cloudinit.

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by rog
Modified:
12 years, 1 month ago
Reviewers:
mp+98713, niemeyer
Visibility:
Public.

Description

environs/ec2: set admin-identity correctly in cloudinit. This enables the cloud-init script to correctly start juju-admin initialize. The amazon test is now working again. https://code.launchpad.net/~rogpeppe/juju/go-ec2-fix-admin-identity/+merge/98713 Requires: https://code.launchpad.net/~rogpeppe/juju/go-ec2-eventual-getfile/+merge/98662 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : environs/ec2: add admin secret. #

Patch Set 3 : environs/ec2: add admin secret. #

Patch Set 4 : environs/ec2: add admin secret. #

Patch Set 5 : environs/ec2: add admin secret. #

Patch Set 6 : environs/ec2: set admin-identity correctly in cloudinit. #

Patch Set 7 : environs/ec2: set admin-identity correctly in cloudinit. #

Total comments: 3

Patch Set 8 : environs/ec2: set admin-identity correctly in cloudinit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -10 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/auth.go View 1 2 3 4 5 6 7 2 chunks +13 lines, -0 lines 0 comments Download
M environs/ec2/cloudinit.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M environs/ec2/cloudinit_test.go View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M environs/ec2/config_test.go View 1 2 1 chunk +4 lines, -5 lines 0 comments Download
M environs/ec2/ec2.go View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M environs/ec2/live_test.go View 1 2 1 chunk +1 line, -1 line 0 comments Download
M state/open.go View 4 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 13
rog
Please take a look.
12 years, 1 month ago (2012-03-21 19:25:06 UTC) #1
niemeyer
I'd like to understand why we need to support the admin secret setting. AFAIK, this ...
12 years, 1 month ago (2012-03-21 20:45:53 UTC) #2
rog
Please take a look.
12 years, 1 month ago (2012-03-22 10:04:47 UTC) #3
rog
On 2012/03/21 20:45:53, niemeyer wrote: > I'd like to understand why we need to support ...
12 years, 1 month ago (2012-03-22 10:06:13 UTC) #4
rog
On 2012/03/22 10:06:13, rog wrote: > On 2012/03/21 20:45:53, niemeyer wrote: > > I'd like ...
12 years, 1 month ago (2012-03-22 10:08:11 UTC) #5
rog
Please take a look.
12 years, 1 month ago (2012-03-22 14:21:29 UTC) #6
rog
Please take a look.
12 years, 1 month ago (2012-03-22 14:32:49 UTC) #7
rog
Please take a look.
12 years, 1 month ago (2012-03-22 15:48:42 UTC) #8
rog
Please take a look.
12 years, 1 month ago (2012-03-22 17:29:09 UTC) #9
niemeyer
LGTM https://codereview.appspot.com/5868051/diff/8009/environs/ec2/auth.go File environs/ec2/auth.go (right): https://codereview.appspot.com/5868051/diff/8009/environs/ec2/auth.go#newcode13 environs/ec2/auth.go:13: // Given the name of a principle and ...
12 years, 1 month ago (2012-03-22 17:36:35 UTC) #10
rog
*** Submitted: environs/ec2: set admin-identity correctly in cloudinit. This enables the cloud-init script to correctly ...
12 years, 1 month ago (2012-03-22 17:40:39 UTC) #11
niemeyer
https://codereview.appspot.com/5868051/diff/8009/environs/ec2/auth.go File environs/ec2/auth.go (right): https://codereview.appspot.com/5868051/diff/8009/environs/ec2/auth.go#newcode13 environs/ec2/auth.go:13: // Given the name of a principle and a ...
12 years, 1 month ago (2012-03-22 17:45:40 UTC) #12
rog
12 years, 1 month ago (2012-03-22 19:06:33 UTC) #13
On 22 March 2012 17:45,  <n13m3y3r@gmail.com> wrote:
>
> https://codereview.appspot.com/5868051/diff/8009/environs/ec2/auth.go
> File environs/ec2/auth.go (right):
>
>
https://codereview.appspot.com/5868051/diff/8009/environs/ec2/auth.go#newcode13
> environs/ec2/auth.go:13: // Given the name of a principle and a
> password, makeIdentity
> On 2012/03/22 17:40:39, rog wrote:
>>
>> On 2012/03/22 17:36:35, niemeyer wrote:
>> > // makeIdentity transforms ...
>
>
>> i generally prefer to start sentences with a capital
>
>
> The standard Go convention is very clear in which function documentation
> starts with the name of the function.

I was aware they had to be complete sentences, but I wasn't
aware that the function name always had to come first,
although as you say, it's stated quite clearly in Effective Go.

I'd remembered this remark of Brad's:

http://codereview.appspot.com/5653067/diff/3001/openpgp/keys.go#newcode383

but hadn't realised that it wasn't referring to the first sentence
of the doc comment.

I shall be aware in future :-)
Sign in to reply to this message.

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