'Finds image in cache and returns list of shares with file name.'

def _find_image_in_cache(self, image_id):

    result = []
    if getattr(self, '_mounted_shares', None):
        for share in self._mounted_shares:
            dir = self._get_mount_point_for_share(share)
            file_name = ('img-cache-%s' % image_id)
            file_path = ('%s/%s' % (dir, file_name))
            if os.path.isfile(file_path):
                LOG.debug('Found    cache    file    for    image    %(image_id)s    on    share    %(share)s', {'image_id': image_id, 'share': share})
                result.append((share, file_name))
    return result
