fedimg: Add the hotfix patch to parse Cloud and Atomic Image variant
Signed-off-by: Sayan Chowdhury <sayan.chowdhury2012@gmail.com>
This commit is contained in:
parent
6335ef4dc2
commit
f37206dbc4
1 changed files with 13 additions and 2 deletions
|
@ -70,8 +70,19 @@ class FedimgConsumer(fedmsg.consumers.FedmsgConsumer):
|
|||
compose_id = msg_info['compose_id']
|
||||
cmetadata = fedfind.release.get_release_cid(compose_id).metadata
|
||||
|
||||
images_meta = safeget(cmetadata, 'images', 'payload', 'images',
|
||||
'CloudImages', 'x86_64')
|
||||
# Till F27, both cloud-base and atomic images were available
|
||||
# under variant CloudImages. With F28 and onward releases,
|
||||
# cloud-base image compose moved to cloud variant and atomic images
|
||||
# moved under atomic variant.
|
||||
prev_rel = ['26', '27']
|
||||
if msg_info['release_version'] in prev_rel:
|
||||
images_meta = safeget(cmetadata, 'images', 'payload', 'images',
|
||||
'CloudImages', 'x86_64')
|
||||
else:
|
||||
images_meta = safeget(cmetadata, 'images', 'payload', 'images',
|
||||
'Cloud', 'x86_64')
|
||||
images_meta.extend(safeget(cmetadata, 'images', 'payload',
|
||||
'images', 'AtomicHost', 'x86_64'))
|
||||
|
||||
if images_meta is None:
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue