Merge lp:~wallyworld/juju-core/bootstrap-supported-series into lp:~go-bot/juju-core/trunk
Proposed by
Ian Booth
Status: | Merged |
---|---|
Approved by: | Ian Booth |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2676 |
Proposed branch: | lp:~wallyworld/juju-core/bootstrap-supported-series |
Merge into: | lp:~go-bot/juju-core/trunk |
Diff against target: |
99 lines (+19/-8) 3 files modified
cmd/juju/bootstrap_test.go (+11/-6) environs/bootstrap/bootstrap_test.go (+1/-1) environs/bootstrap/synctools.go (+7/-1) |
To merge this branch: | bzr merge lp:~wallyworld/juju-core/bootstrap-supported-series |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+216974@code.launchpad.net |
Commit message
Upload tools for all lts series
When --upload-tools is used, and no series is
explicitly specified by the user, we were
uploading tools just for the latest lts series.
But we really want tools for all supported lts
series to be uploaded.
Description of the change
Upload tools for all lts series
When --upload-tools is used, and no series is
explicitly specified by the user, we were
uploading tools just for the latest lts series.
But we really want tools for all supported lts
series to be uploaded.
To post a comment you must log in.
Reviewers: mp+216974_ code.launchpad. net,
Message:
Please take a look.
Description:
Upload tools for all lts series
When --upload-tools is used, and no series is
explicitly specified by the user, we were
uploading tools just for the latest lts series.
But we really want tools for all supported lts
series to be uploaded.
https:/ /code.launchpad .net/~wallyworl d/juju- core/bootstrap- supported- series/ +merge/ 216974
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/97720043/
Affected files (+10, -2 lines): bootstrap/ bootstrap_ test.go bootstrap/ synctools. go
A [revision details]
M environs/
M environs/
Index: [revision details] 20140424033650- 9am3xzxfcelms2x 8
=== 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: tarmac-
+New revision: <email address hidden>
Index: environs/ bootstrap/ bootstrap_ test.go bootstrap/ bootstrap_ test.go' bootstrap/ bootstrap_ test.go 2014-04-17 09:42:34 +0000 bootstrap/ bootstrap_ test.go 2014-04-24 04:01:26 +0000 bootstrap. SeriesToUpload( cfg, []string{ "quantal" }), "quantal" }) interface{ }{"default- series" : "lucid"}) bootstrap. SeriesToUpload( cfg, nil), jc.SameContents, LatestLtsSeries (), "lucid"}) bootstrap. SeriesToUpload( cfg, nil), jc.SameContents,
=== modified file 'environs/
--- environs/
+++ environs/
@@ -352,7 +352,7 @@
c.Assert(
jc.SameContents, []string{
env = newEnviron("foo", useDefaultKeys,
map[string]
cfg = env.Config()
- c.Assert(
[]string{"quantal", config.
+ c.Assert(
[]string{"quantal", "precise", "trusty", "lucid"})
}
func (s *bootstrapSuite) assertUploadTools(c *gc.C, vers version.Binary,
forceVersion bool,
Index: environs/ bootstrap/ synctools. go bootstrap/ synctools. go' bootstrap/ synctools. go 2014-04-14 12:36:13 +0000 bootstrap/ synctools. go 2014-04-24 04:01:26 +0000
=== modified file 'environs/
--- environs/
+++ environs/
@@ -92,6 +92,10 @@
return vers
}
+// Unless otherwise specified, we will upload tools for all lts series on series. ..) Add(version. Current. Series) Add(config. LatestLtsSeries ()) Add(toolsSeries ) es(); ok { Add(series)
bootstrap
+// when --upload-tools is used.
+var toolsLtsSeries = []string{"precise", "trusty"}
+
// SeriesToUpload returns the supplied series with duplicates removed if
// non-empty; otherwise it returns a default list of series we should
// probably upload, based on cfg.
@@ -99,7 +103,9 @@
unique := set.NewStrings(
if unique.IsEmpty() {
unique.
- unique.
+ for _, toolsSeries := range toolsLtsSeries {
+ unique.
+ }
if series, ok := cfg.DefaultSeri
unique.
}