def _get_image(vm_):
    images = avail_images()
    vm_image = str(config.get_cloud_config_value(
        'image', vm_, __opts__, search_global=False
    ))

    if not vm_image:
        raise SaltCloudNotFound('No image specified for this VM.')

    if vm_image in images:
        return vm_image

    raise SaltCloudNotFound(
        'The specified image, \'{0}\', could not be found.'.format(vm_image)
    )
Return the VM's image. Used by create().
dataset/ETHPy150Open saltstack/salt/salt/cloud/clouds/qingcloud.py/_get_image