'Retrieve an E-Series consistency group by name'

def _get_consistencygroup_by_name(self, name):

    for cg in self._client.list_consistency_groups():
        if (name == cg['name']):
            return cg
    raise exception.ConsistencyGroupNotFound(consistencygroup_id=name)
