def _search_by_lun(disks_service, lun_id):
 res = [disk for disk in disks_service.list(search='disk_type=lun') if (disk.lun_storage.id == lun_id)]
 return (res[0] if res else None)

def _search_by_lun ( disks_service , lun_id ) : res = [ disk for disk in disks_service . list ( search = 'disk_type=lun' ) if ( disk . lun_storage . id == lun_id ) ] return ( res [ 0 ] if res else None )
find disk by lun id .