def _prep_image_detail(image_client, image_id):

    info = utils.find_resource(
        image_client.images,
        image_id,
    )
    # Glance client V2 doesn't have _info attribute
    # The following condition deals with it.
    return getattr(info, "_info", info)
Prepare the detailed image dict for printing
dataset/ETHPy150Open dtroyer/python-openstackclient/openstackclient/compute/v2/server.py/_prep_image_detail