Example #1
0
def get_base_image_info_by_name(request, name):
    if name.startswith('cmp_base'):
        base_images = baseimages_helper.get_acceptance_by_name(request, name)
        with_acceptance_rs = []
        if base_images:
            for image in base_images:
                r = image.get('baseImage')
                if r:
                    r['acceptance'] = image.get('acceptance', 'UNKNOWN')
                    with_acceptance_rs.append(r)
        return with_acceptance_rs
    return baseimages_helper.get_by_name(request, name)
Example #2
0
def get_base_image_info_by_name(request, name, cell):
    if name.startswith('cmp_base'):
        base_images = baseimages_helper.get_acceptance_by_name(request, name, cell)
        with_acceptance_rs = []
        if base_images:
            for image in base_images:
                r = image.get('baseImage')
                if r:
                    r['acceptance'] = image.get('acceptance', 'UNKNOWN')
                    with_acceptance_rs.append(r)
        return with_acceptance_rs
    return baseimages_helper.get_by_name(request, name, cell)