mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
* Fix
* fixed linter stuff
* typo in section name of changlog fragment
Co-authored-by: Max Bidlingmaier <Max-Florian.Bidlingmaier@sap.com>
(cherry picked from commit d057b2e3b2
)
Co-authored-by: Max Bidlingmaier <maks@konsolan.de>
This commit is contained in:
parent
172e8bb161
commit
c5f17f2184
3 changed files with 5 additions and 2 deletions
|
@ -0,0 +1,3 @@
|
||||||
|
bugfixes:
|
||||||
|
- gitlab_group_members - fixes issue when gitlab group has more then 20 members, pagination problem (https://github.com/ansible-collections/community.general/issues/3041).
|
||||||
|
- gitlab_project_members - fixes issue when gitlab group has more then 20 members, pagination problem (https://github.com/ansible-collections/community.general/issues/3041).
|
|
@ -109,7 +109,7 @@ class GitLabGroup(object):
|
||||||
# get all members in a group
|
# get all members in a group
|
||||||
def get_members_in_a_group(self, gitlab_group_id):
|
def get_members_in_a_group(self, gitlab_group_id):
|
||||||
group = self._gitlab.groups.get(gitlab_group_id)
|
group = self._gitlab.groups.get(gitlab_group_id)
|
||||||
return group.members.list()
|
return group.members.list(all=True)
|
||||||
|
|
||||||
# check if the user is a member of the group
|
# check if the user is a member of the group
|
||||||
def is_user_a_member(self, members, gitlab_user_id):
|
def is_user_a_member(self, members, gitlab_user_id):
|
||||||
|
|
|
@ -130,7 +130,7 @@ class GitLabProjectMembers(object):
|
||||||
# get all members in a project
|
# get all members in a project
|
||||||
def get_members_in_a_project(self, gitlab_project_id):
|
def get_members_in_a_project(self, gitlab_project_id):
|
||||||
project = self._gitlab.projects.get(gitlab_project_id)
|
project = self._gitlab.projects.get(gitlab_project_id)
|
||||||
return project.members.list()
|
return project.members.list(all=True)
|
||||||
|
|
||||||
# check if the user is a member of the project
|
# check if the user is a member of the project
|
||||||
def is_user_a_member(self, members, gitlab_user_id):
|
def is_user_a_member(self, members, gitlab_user_id):
|
||||||
|
|
Loading…
Reference in a new issue