Skip to content

Commit

Permalink
[v4] GroupManager.search is not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauvain Pocentek committed May 23, 2017
1 parent 27c1e95 commit 9a66d78
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions gitlab/v4/objects.py
Expand Up @@ -2222,16 +2222,3 @@ def transfer_project(self, id, **kwargs):

class GroupManager(BaseManager):
obj_cls = Group

def search(self, query, **kwargs):
"""Searches groups by name.
Args:
query (str): The search string
all (bool): If True, return all the items, without pagination
Returns:
list(Group): a list of matching groups.
"""
url = '/groups?search=' + query
return self.gitlab._raw_list(url, self.obj_cls, **kwargs)

0 comments on commit 9a66d78

Please sign in to comment.