mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-08 09:19:09 -07:00
If `all=True` is not set then by default only 20 records will be
returned when calling `list()`. Use `all=True` so that all records
will be returned.
For the `list()` use where do not desire to retrieve all entries then
use`all=False` to show explicityly that we don't want to get all of
the entries.
Fixes: #3729
Fixes: #4460
(cherry picked from commit fe4bbc5de3
)
Co-authored-by: John Villalovos <john@sodarock.com>
This commit is contained in:
parent
70a3dae965
commit
19ba15a783
7 changed files with 33 additions and 10 deletions
|
@ -494,9 +494,9 @@ def main():
|
|||
namespace_id = group.id
|
||||
else:
|
||||
if username:
|
||||
namespace = gitlab_instance.namespaces.list(search=username)[0]
|
||||
namespace = gitlab_instance.namespaces.list(search=username, all=False)[0]
|
||||
else:
|
||||
namespace = gitlab_instance.namespaces.list(search=gitlab_instance.user.username)[0]
|
||||
namespace = gitlab_instance.namespaces.list(search=gitlab_instance.user.username, all=False)[0]
|
||||
namespace_id = namespace.id
|
||||
|
||||
if not namespace_id:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue