'Try copying image file_name from cached file_name.'

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

    LOG.debug('Trying    copy    from    cache    using    copy    offload.')
    copied = False
    (cache_copy, found_local) = self._find_image_location(cache_result, volume['id'])
    try:
        if found_local:
            (nfs_share, file_name) = cache_copy
            self._clone_file_dst_exists(nfs_share, file_name, volume['name'], dest_exists=True)
            LOG.debug('Copied    image    from    cache    to    volume    %s    using    cloning.', volume['id'])
            copied = True
        elif (cache_copy and self.configuration.netapp_copyoffload_tool_path):
            self._copy_from_remote_cache(volume, image_id, cache_copy)
            copied = True
        if copied:
            self._post_clone_image(volume)
    except Exception:
        LOG.exception('Error    in    workflow    copy    from    cache.')
    return copied
