'Clones a copy from image cache.'

def _clone_from_cache(self, volume, image_id, cache_result):

    cloned = False
    LOG.info('Cloning    image    %s    from    cache', image_id)
    for res in cache_result:
        (share, file_name) = res
        LOG.debug('Cache    share:    %s', share)
        if (share and self._is_share_clone_compatible(volume, share)):
            try:
                self._do_clone_rel_img_cache(file_name, volume['name'], share, file_name)
                cloned = True
                volume['provider_location'] = share
                break
            except Exception:
                LOG.warning('Unexpected    exception    during    image    cloning    in    share    %s', share)
    return cloned
