Merge lp:~thumper/juju-core/maybe-add-cloud-archive-func into lp:~go-bot/juju-core/trunk
Proposed by
Tim Penhey
Status: | Merged |
---|---|
Approved by: | John A Meinel |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2391 |
Proposed branch: | lp:~thumper/juju-core/maybe-add-cloud-archive-func |
Merge into: | lp:~go-bot/juju-core/trunk |
Prerequisite: | lp:~thumper/juju-core/move-to-juju-loggo |
Diff against target: |
82 lines (+29/-22) 1 file modified
environs/cloudinit/cloudinit.go (+29/-22) |
To merge this branch: | bzr merge lp:~thumper/juju-core/maybe-add-cloud-archive-func |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+209798@code.launchpad.net |
Commit message
Make MaybeAddCoudArc
Simple change that will be used further down the pipe.
Will be called by the code that makes the lxc template
image, but there will be no machine config object.
Description of the change
Make MaybeAddCoudArc
Simple change that will be used further down the pipe.
Will be called by the code that makes the lxc template
image, but there will be no machine config object.
To post a comment you must log in.
Reviewers: mp+209798_ code.launchpad. net,
Message:
Please take a look.
Description: hiveCloudTools a simple func
Make MaybeAddCoudArc
Simple change that will be used further down the pipe.
Will be called by the code that makes the lxc template
image, but there will be no machine config object.
https:/ /code.launchpad .net/~thumper/ juju-core/ maybe-add- cloud-archive- func/+merge/ 209798
Requires: /code.launchpad .net/~thumper/ juju-core/ move-to- juju-loggo/ +merge/ 209530
https:/
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/72050045/
Affected files (+5, -3 lines): cloudinit/ cloudinit. go
A [revision details]
M environs/
Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: <email address hidden>
+New revision: <email address hidden>
Index: environs/ cloudinit/ cloudinit. go cloudinit/ cloudinit. go' cloudinit/ cloudinit. go 2014-02-27 05:24:43 +0000 cloudinit/ cloudinit. go 2014-03-06 21:55:44 +0000 kageCommands { udArchiveCloudT ools(c) Version. Series chiveCloudTools (c, series)
=== modified file 'environs/
--- environs/
+++ environs/
@@ -326,7 +326,8 @@
// for series that need it. This gives us up-to-date LXC,
// MongoDB, and other infrastructure.
if !cfg.DisablePac
- cfg.MaybeAddClo
+ series := cfg.Tools.
+ MaybeAddCloudAr
}
if cfg.StateServer {
@@ -573,8 +574,7 @@
// MaybeAddCloudAr chiveCloudTools adds the cloud-archive cloud-tools chiveCloudTools (c Version. Series chiveCloudTools (c *cloudinit.Config, series string) {
// pocket to apt sources, if the series requires it.
-func (cfg *MachineConfig) MaybeAddCloudAr
*cloudinit.Config) {
- series := cfg.Tools.
+func MaybeAddCloudAr
if series != "precise" {
// Currently only precise; presumably we'll
// need to add each LTS in here as they're