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

Issue 78640044: Update ComposeUserData to take cloudinit.Config

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 1 month ago by axw
Modified:
10 years, 1 month ago
Reviewers:
wwitzel3, mp+212092
Visibility:
Public.

Description

Update ComposeUserData to take cloudinit.Config ... and update provider/maas to use the apt options instead of crafting apt-get commands. Fixes lp:1295058 https://code.launchpad.net/~axwalk/juju-core/composeuserdata-customise-cloudinit/+merge/212092 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Update ComposeUserData to take cloudinit.Config #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -70 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M environs/cloudinit.go View 1 1 chunk +18 lines, -17 lines 0 comments Download
M environs/cloudinit_test.go View 2 chunks +5 lines, -2 lines 0 comments Download
M provider/azure/customdata.go View 1 chunk +1 line, -1 line 0 comments Download
M provider/azure/customdata_test.go View 1 chunk +1 line, -1 line 0 comments Download
M provider/ec2/ec2.go View 1 1 chunk +1 line, -1 line 0 comments Download
M provider/maas/environ.go View 1 4 chunks +16 lines, -12 lines 0 comments Download
M provider/maas/environ_test.go View 1 2 chunks +6 lines, -6 lines 0 comments Download
M provider/maas/export_test.go View 1 chunk +3 lines, -3 lines 0 comments Download
M provider/openstack/provider.go View 1 1 chunk +1 line, -1 line 2 comments Download
M utils/apt.go View 1 chunk +0 lines, -10 lines 0 comments Download
M utils/apt_test.go View 1 chunk +0 lines, -16 lines 0 comments Download

Messages

Total messages: 7
axw
Please take a look.
10 years, 1 month ago (2014-03-21 06:36:10 UTC) #1
wwitzel3
LGTM (assuming it has been run)
10 years, 1 month ago (2014-03-21 10:39:06 UTC) #2
axw
On 2014/03/21 10:39:06, wwitzel3 wrote: > LGTM (assuming it has been run) Thanks. I haven't ...
10 years, 1 month ago (2014-03-21 10:54:47 UTC) #3
axw
On 2014/03/21 10:54:47, axw wrote: > On 2014/03/21 10:39:06, wwitzel3 wrote: > > LGTM (assuming ...
10 years, 1 month ago (2014-03-25 11:34:29 UTC) #4
axw
Please take a look.
10 years, 1 month ago (2014-03-25 11:49:33 UTC) #5
wwitzel3
LGTM Just a random question about interfaces/duplication. https://codereview.appspot.com/78640044/diff/20001/provider/openstack/provider.go File provider/openstack/provider.go (right): https://codereview.appspot.com/78640044/diff/20001/provider/openstack/provider.go#newcode527 provider/openstack/provider.go:527: func (e ...
10 years, 1 month ago (2014-03-26 11:15:29 UTC) #6
axw
10 years, 1 month ago (2014-03-26 11:44:50 UTC) #7
BTW, if you go to the "unified diff" link the SupportedArchitecture changes
won't show up. They only show up in "delta from previous".

https://codereview.appspot.com/78640044/diff/20001/provider/openstack/provide...
File provider/openstack/provider.go (right):

https://codereview.appspot.com/78640044/diff/20001/provider/openstack/provide...
provider/openstack/provider.go:527: func (e *environ) SupportedArchitectures()
([]string, error) {
On 2014/03/26 11:15:29, wwitzel3 wrote:
> This seems identical to the code that is in the ec2 provider. Is that just a
> product of using interfaces and there is no way around this duplication? Will
> different providers do this differently maybe? ELI5

This change is just from merging trunk. I didn't implement it - this is
something wallyworld did recently.

Different providers do implement SupportedArchitectures differently. For example
the manual provider is a bit different (although possibly wrong; I've emailed
Ian to ask).

Having said that, it does look like there's a lot of duplication here that could
be factored out. I can't see any reason why it couldn't be done, though
wallyworld may well have a good explanation.
Sign in to reply to this message.

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