Commit 0c1aae33 authored by Frédéric Dalleau's avatar Frédéric Dalleau

Find an image_url name for the nfsroot jobs

Signed-off-by: default avatarFrédéric Dalleau <frederic.dalleau@collabora.com>
parent 1bb5ff14
......@@ -62,6 +62,8 @@ def lava_jobdata_extract_definition(data):
image_url = next((i for i in (a.get('deploy',{}).get('images',{}).get('image',{}).get('url') for a in definition['actions']) if i), None)
if not image_url:
image_url = next((i for i in (a.get('deploy',{}).get('images',{}).get('rootfs',{}).get('url') for a in definition['actions']) if i), None)
if not image_url:
image_url = next((i for i in (a.get('deploy',{}).get('nfsrootfs',{}).get('url') for a in definition['actions']) if i), None)
ret['image.url'] = image_url
ret['image.name'] = os.path.basename(image_url)
# assume the first part of the image name, before any '-' or '_', is the osname
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment