def validate(self, task):

        node = task.node

        d_info = _parse_deploy_info(node)

        if node.driver_internal_info.get('is_whole_disk_image'):
            props = []
        elif service_utils.is_glance_image(d_info['image_source']):
            props = ['kernel_id', 'ramdisk_id']
        else:
            props = ['kernel', 'ramdisk']
        deploy_utils.validate_image_properties(task.context, d_info, props)
Validate the deployment information for the task's node.
dataset/ETHPy150Open openstack/ironic/ironic/drivers/modules/ilo/boot.py/IloVirtualMediaBoot.validate