-
Committer:
Tarmac
-
Author(s):
jtv at canonical
-
Date:
2013-07-16 06:23:06 UTC
-
mfrom:
(1444.6.8 newmachineconfig)
-
Revision ID:
tarmac-20130716062306-5r8wjuex98uy7dl1
[r=jtv] 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.