'Searches for the replay by replayid.
replayid is stored in the replay\'s description attribute.
:param scvolume: Dell volume object.
:param replayid: Name to search for.  This is a portion of the
snapshot ID as we do not have space for the entire
GUID in the replay description.
:returns: Dell replay object or None.'

def find_replay(self, scvolume, replayid):

    r = self.client.get(('StorageCenter/ScVolume/%s/ReplayList' % self._get_id(scvolume)))
    try:
        replays = self._get_json(r)
        if isinstance(replays, list):
            for replay in replays:
                description = replay.get('description')
                if ((len(description) >= 30) and (replayid.startswith(description) is True) and (replay.get('markedForExpiration') is not True)):
                    return replay
    except Exception:
        LOG.error('Invalid    ReplayList    return:    %s', r)
    LOG.warning('Unable    to    find    snapshot    %s', replayid)
    return None
