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

Proposed by Robert C Jennings
Status: Merged
Merged at revision: 25
Proposed branch: lp:~rcj/vmbuilder/ec2-finder
Merge into: lp:~ubuntu-on-ec2/vmbuilder/ec2-finder
Diff against target: 39 lines (+4/-13)
1 file modified
gen-table.sh (+4/-13)
To merge this branch: bzr merge lp:~rcj/vmbuilder/ec2-finder
Reviewer Review Type Date Requested Status
Dan Watkins (community) Approve
Jose L. VG (community) Approve
Review via email: mp+310149@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Jose L. VG (josvaz) wrote :

LGTM!

review: Approve
Revision history for this message
Dan Watkins (oddbloke) :
review: Approve
lp:~rcj/vmbuilder/ec2-finder updated
25. By Dan Watkins

Remove listings for unsupported releases (LP: #1637798)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'gen-table.sh'
2--- gen-table.sh 2016-10-17 21:26:24 +0000
3+++ gen-table.sh 2016-11-06 21:03:51 +0000
4@@ -7,24 +7,12 @@
5
6 suite2version() {
7 case $1 in
8- karmic) echo "9.10 EOL";;
9- hardy) echo "8.04 LTS";;
10- lucid) echo "10.04 LTS";;
11- maverick) echo "10.10 EOL";;
12- natty) echo "11.04 EOL";;
13- oneiric) echo "11.10 EOL";;
14 precise) echo "12.04 LTS";;
15- quantal) echo "12.10 EOL";;
16- raring) echo "13.04 EOL";;
17- saucy) echo "13.10 EOL";;
18 trusty) echo "14.04 LTS";;
19- utopic) echo "14.10 EOL";;
20- vivid) echo "15.04 EOL";;
21- wily) echo "15.10 EOL";;
22 xenial) echo "16.04 LTS";;
23 yakkety) echo "16.10";;
24 zesty) echo "17.04";;
25- *) echo "Devel";;
26+ *) echo "unsupported";;
27 esac
28 }
29
30@@ -33,6 +21,9 @@
31 while read suite stream tag serial itype arch region ami aki virttype
32 do
33 version=$(suite2version ${suite})
34+ if [ "${version}" == "unsupported" ]; then
35+ continue
36+ fi
37 [ "${aki}" == "hvm" ] && itype="hvm:${itype}"
38
39 console="console.aws.amazon.com"

Subscribers

People subscribed via source and target branches