

def _parse_image_meta(image=None, detail=False):
    if (not image):
        return {
            
        }
    if image:
        return {
            'name': image['manifest']['name'],
            'version': image['manifest']['version'],
            'os': image['manifest']['os'],
            'description': image['manifest']['description'],
            'published': image['manifest']['published_at'],
            'source': image['source'],
        }
    else:
        return '{name}@{version} [{date}]'.format(name=image['manifest']['name'], version=image['manifest']['version'], date=image['manifest']['published_at'])

dataset/ETHPy150Open saltstack/salt/salt/modules/smartos_imgadm.py _parse_image_meta/VarMisuse@32/37 `detail`->`image`