Merge lp://staging/~gz/juju-core/1.10_revert_r1188 into lp://staging/juju-core/1.10
Proposed by
Martin Packman
Status: | Merged |
---|---|
Approved by: | William Reade |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1190 |
Proposed branch: | lp://staging/~gz/juju-core/1.10_revert_r1188 |
Merge into: | lp://staging/juju-core/1.10 |
Diff against target: |
51 lines (+2/-12) 2 files modified
environs/cloudinit/cloudinit.go (+1/-7) environs/cloudinit/cloudinit_test.go (+1/-5) |
To merge this branch: | bzr merge lp://staging/~gz/juju-core/1.10_revert_r1188 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+162861@code.staging.launchpad.net |
Description of the change
Undo change to cloudinit update logic on raring
Fix for next 1.10 release brought across from trunk.
To post a comment you must log in.
Reviewers: mp+162861_ code.launchpad. net,
Message:
Please take a look.
Description:
Undo change to cloudinit update logic on raring
Fix for next 1.10 release brought across from trunk.
https:/ /code.launchpad .net/~gz/ juju-core/ 1.10_revert_ r1188/+ merge/162861
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/9276044/
Affected files: cloudinit/ cloudinit. go cloudinit/ cloudinit_ test.go
A [revision details]
M environs/
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 2013-04-19 16:55:38 +0000 cloudinit/ cloudinit. go 2013-04-22 20:34:59 +0000 (true) orizedKeys( cfg.AuthorizedK eys) ("git")
=== modified file 'environs/
--- environs/
+++ environs/
@@ -106,12 +106,6 @@
if err := verifyConfig(cfg); err != nil {
return nil, err
}
- // TODO(dimitern) this is needed for raring, due to LP bug #1103881
- if cfg.Tools.Series == "raring" {
- addScripts(c, "apt-get upgrade -y")
- } else {
- c.SetAptUpgrade
- }
c.AddSSHAuth
c.AddPackage
@@ -184,9 +178,9 @@
}
// general options (true) te(true) cloudinit. OutAll, "| tee -a cloud-init- output. log", "")
+ c.SetAptUpgrade
c.SetAptUpda
c.SetOutput(
/var/log/
-
return c, nil
}
Index: environs/ cloudinit/ cloudinit_ test.go cloudinit/ cloudinit_ test.go' cloudinit/ cloudinit_ test.go 2013-04-19 15:46:34 +0000 cloudinit/ cloudinit_ test.go 2013-04-22 20:34:59 +0000 Unmarshal( data, &x)
=== modified file 'environs/
--- environs/
+++ environs/
@@ -129,7 +129,6 @@
},
setEnvConfig: true,
expectScripts: `
-apt-get upgrade -y
set -xe
mkdir -p /var/lib/juju
mkdir -p /var/log/juju
@@ -249,10 +248,7 @@
err = goyaml.
c.Assert(err, IsNil)
- // TODO(dimitern) raring does apt-get upgrade differently, due to LP bug Tools.Series != "raring" { x["apt_ upgrade" ], Equals, true) x["apt_ upgrade" ], Equals, true) x["apt_ update" ], Equals, true)
#1103881
- if test.cfg.
- c.Check(
- }
+ c.Check(
c.Check(
scripts := getScripts(x)