Merge lp:~rcj/vmbuilder/jenkins_kvm_lp1479165 into lp:~ubuntu-on-ec2/vmbuilder/jenkins_kvm

Proposed by Robert C Jennings
Status: Merged
Merged at revision: 699
Proposed branch: lp:~rcj/vmbuilder/jenkins_kvm_lp1479165
Merge into: lp:~ubuntu-on-ec2/vmbuilder/jenkins_kvm
Diff against target: 12 lines (+1/-1)
1 file modified
templates/img-azure.tmpl (+1/-1)
To merge this branch: bzr merge lp:~rcj/vmbuilder/jenkins_kvm_lp1479165
Reviewer Review Type Date Requested Status
Dan Watkins (community) Approve
Ben Howard (community) peer Approve
Robert C Jennings Pending
Review via email: mp+266167@code.launchpad.net

Description of the change

Simple code fix the following error:

+ '[' dist_ge wily trusty ']'
/var/lib/cloud/instance/scripts/launch_config.sh: line 408: [: wily: binary operator expected

However, I would like the review to focus on the impact of running the code which has not run previously. I want to be sure that the cloud-init config change for trusty and prior won't break the image.

To post a comment you must log in.
699. By Robert C Jennings

Coding style fix per review

Revision history for this message
Ben Howard (darkmuggle-deactivatedaccount) wrote :

This is safe. WALinuxAgent includes a cloud-init config dropped to /etc/cloud/cloud.cfg.d/91_walinuxagent.cfg that defines the datasource. Since cloud-init uses /etc/cloud/cloud.cfg.d/90-dpkg.cfg as part of the debconf selections, the mere presence of WALinuxAgent moots this code.

In fact, WALinuxAgent back to 12.04 has the same code. If anything, I would _drop_ the entire section.

See: https://git.launchpad.net/~utlemming/+git/lp1479165/diff/

review: Approve (peer)
Revision history for this message
Dan Watkins (oddbloke) wrote :

Given that we've been looking at dropping WALinuxAgent, I wouldn't drop this section. But this fix looks good.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'templates/img-azure.tmpl'
2--- templates/img-azure.tmpl 2015-06-11 20:01:23 +0000
3+++ templates/img-azure.tmpl 2015-07-29 03:12:05 +0000
4@@ -261,7 +261,7 @@
5 set -x
6 # Reconfigure cloud-init
7 debug "Reconfiguring Cloud-init"
8-if [ dist_ge "${suite}" "trusty" ]; then
9+if dist_ge "${suite}" "trusty"; then
10 debug "WALinuxAgent has packaged cloud-init configuration"
11
12 else

Subscribers

People subscribed via source and target branches