'Finds the sc consistency group that matches replayid
:param profile: Dell profile 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.
:return: Consistency group object or None.'

def _find_sc_cg(self, profile, replayid):

    self.cg_except_on_no_support()
    r = self.client.get(('StorageCenter/ScReplayProfile/%s/ConsistencyGroupList' % self._get_id(profile)))
    if self._check_result(r):
        cglist = self._get_json(r)
        if (cglist and isinstance(cglist, list)):
            for cg in cglist:
                desc = cg.get('description')
                if ((len(desc) >= 30) and (replayid.startswith(desc) is True)):
                    return cg
    return None
