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

Issue 11234043: Constructor for cloudinit.MachineConfig. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by jtv.canonical
Modified:
10 years, 8 months ago
Reviewers:
mp+174542, jameinel, julian.edwards, fwereade
Visibility:
Public.

Description

Constructor for cloudinit.MachineConfig. This is preparation for a refactoring discussed with William Reade and outlined in bug 1199847. Much of the work of creating a cloudinit.MachineConfig is repetitive between providers, so we might as well extract it. This also makes it easier to move the construction from one function to another, as is likely to happen during the further refactoring. You'll see that "tools" is not a parameter. That's because the projected refactoring moves construction of the MachineConfig ahead of where the tools are selected. If these two steps end up fitting together, uniformly across providers, once the code starts to stabilize again then we can make "tools" a parameter after all. https://code.launchpad.net/~jtv/juju-core/newmachineconfig/+merge/174542 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 1

Patch Set 2 : Constructor for cloudinit.MachineConfig. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -58 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M environs/azure/environ.go View 1 3 chunks +2 lines, -20 lines 0 comments Download
M environs/cloudinit.go View 1 1 chunk +17 lines, -0 lines 0 comments Download
M environs/ec2/ec2.go View 1 1 chunk +4 lines, -9 lines 0 comments Download
M environs/maas/environ.go View 1 2 chunks +2 lines, -20 lines 0 comments Download
M environs/openstack/provider.go View 1 1 chunk +4 lines, -9 lines 0 comments Download

Messages

Total messages: 6
jtv.canonical
Please take a look.
10 years, 9 months ago (2013-07-13 11:31:51 UTC) #1
jameinel
I'm a bit torn. I like the idea of centralizing stuff that can benefit from ...
10 years, 9 months ago (2013-07-14 07:56:30 UTC) #2
jtv.canonical
I should have gone into more detail about the refactoring that this change helps prepare ...
10 years, 9 months ago (2013-07-15 01:47:20 UTC) #3
jtv.canonical
Please take a look.
10 years, 9 months ago (2013-07-15 05:10:29 UTC) #4
fwereade
I agree with jam that this particular step is more or less a wash, but ...
10 years, 9 months ago (2013-07-15 11:17:49 UTC) #5
julian.edwards
10 years, 9 months ago (2013-07-16 03:38:25 UTC) #6
LGTM
Sign in to reply to this message.

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