Skip to content
Snippets Groups Projects
Commit 5eb15d2e authored by Steven Dake's avatar Steven Dake
Browse files

Make RHEL build properly

build.py -b rhel -t [rdo|rhos|source|binary]

The last patch for this didn't quite fix the problem properly as
it only permitted RHOS builds.

backport: liberty

Change-Id: I27eed202560adce450c07d043cc224e7a6c6bbf6
Closes-Bug: #1513088
parent 2b02001e
No related branches found
No related tags found
No related merge requests found
...@@ -315,19 +315,20 @@ class KollaWorker(object): ...@@ -315,19 +315,20 @@ class KollaWorker(object):
self.base_tag = config['base_tag'] self.base_tag = config['base_tag']
self.install_type = config['install_type'] self.install_type = config['install_type']
self.tag = config['tag'] self.tag = config['tag']
self.image_prefix = self.base + '-' + config['install_type'] + '-'
self.images = list() self.images = list()
if '-' in config['install_type']: if self.install_type == 'binary':
self.install_type, self.install_metatype = \ self.install_metatype = 'rdo'
self.install_type.split('-', 2) elif self.install_type == 'source':
else: self.install_metatype = 'mixed'
if self.install_type == 'binary': elif self.install_type == 'rdo':
self.install_metatype = 'rdo' self.install_type = 'binary'
elif self.install_type == 'source': self.install_metatype = 'rdo'
self.install_metatype = 'mixed' elif self.install_type == 'rhos':
elif self.install_type == 'rhel': self.install_type = 'binary'
self.install_metatype = 'rhos' self.install_metatype = 'rhos'
self.image_prefix = self.base + '-' + self.install_type + '-'
self.tag = config['tag'] self.tag = config['tag']
self.include_header = config['include_header'] self.include_header = config['include_header']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment