Override default latest tag on ubuntu

After 16.04 got released we can't build our images as we pull latest
(16.04 now) and our sources lists are built for 14.04. We pin ubuntu to
14.04 here.

Change-Id: Ib29a1c607c3a725cdaf2098edd1c4b80f06a5e38
Closes-Bug: #1575884
(cherry picked from commit e2fa75fce6)
This commit is contained in:
Michal (inc0) Jastrzebski 2016-04-27 19:30:37 +00:00 committed by Michal Jastrzebski (inc0)
parent b63771f1c8
commit d01ea386be
1 changed files with 5 additions and 0 deletions

View File

@ -343,6 +343,11 @@ class KollaWorker(object):
self.namespace = conf.namespace
self.base = conf.base
self.base_tag = conf.base_tag
if self.base == 'ubuntu' and self.base_tag == 'latest':
self.base_tag = '14.04'
# TODO(inc0): This will override default latest, which is xenial
# if someone actually set up latest in their conf, it will be
# overriden as well
self.install_type = conf.install_type
self.tag = conf.tag
self.images = list()