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

Issue 14307043: ec2,openstack: control-bucket set in Prepare

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 7 months ago by fwereade
Modified:
10 years, 6 months ago
Reviewers:
mue, gz, mp+188955, rog
Visibility:
Public.

Description

ec2,openstack: control-bucket set in Prepare https://code.launchpad.net/~fwereade/juju-core/prepare-control-bucket/+merge/188955 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -15 lines) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M provider/ec2/config_test.go View 1 chunk +34 lines, -0 lines 0 comments Download
M provider/ec2/ec2.go View 1 chunk +13 lines, -14 lines 2 comments Download
M provider/openstack/config_test.go View 1 chunk +36 lines, -0 lines 0 comments Download
M provider/openstack/provider.go View 1 chunk +12 lines, -1 line 1 comment Download

Messages

Total messages: 6
fwereade
Please take a look.
10 years, 7 months ago (2013-10-02 22:44:16 UTC) #1
gz
LGTM, but the two-versions is crying out for some ec2-openstack unification of tests and code.
10 years, 7 months ago (2013-10-02 23:13:12 UTC) #2
rog
LGTM with one suggestion (it could use some better names though) https://codereview.appspot.com/14307043/diff/1/provider/ec2/ec2.go File provider/ec2/ec2.go (right): ...
10 years, 7 months ago (2013-10-02 23:38:05 UTC) #3
fwereade
With some shame, I'm calling this two-strikes-not-three. It *will* be three when I get to ...
10 years, 7 months ago (2013-10-02 23:48:15 UTC) #4
rog
You could put my suggested function in environs/config and then it could be used in ...
10 years, 7 months ago (2013-10-02 23:59:30 UTC) #5
mue
10 years, 6 months ago (2013-10-07 08:15:38 UTC) #6
LGTM, only missing prefix "juju-" for "control-bucket".

https://codereview.appspot.com/14307043/diff/1/provider/ec2/ec2.go
File provider/ec2/ec2.go (right):

https://codereview.appspot.com/14307043/diff/1/provider/ec2/ec2.go#newcode210
provider/ec2/ec2.go:210: attrs["control-bucket"] = fmt.Sprintf("%x", uuid.Raw())
How about the prefix "juju-" here?

https://codereview.appspot.com/14307043/diff/1/provider/openstack/provider.go
File provider/openstack/provider.go (right):

https://codereview.appspot.com/14307043/diff/1/provider/openstack/provider.go...
provider/openstack/provider.go:133: attrs["control-bucket"] = fmt.Sprintf("%x",
uuid.Raw())
Same with prefix here. In BoilerplateConfig() we generate it with a prefix.
Sign in to reply to this message.

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