summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gitlab/__init__.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/gitlab/__init__.py b/gitlab/__init__.py
index 48f4839..aa0ec1c 100644
--- a/gitlab/__init__.py
+++ b/gitlab/__init__.py
@@ -365,11 +365,17 @@ class Gitlab(object):
get_all_results = kwargs.get('all', False)
+ # Remove these keys to avoid breaking the listing (urls will get too
+ # long otherwise)
+ for key in ['all', 'next_url']:
+ if key in params:
+ del params[key]
+
r = self._raw_get(path_, **params)
raise_error_from_response(r, GitlabListError)
- # Remove parameters from kwargs before passing it to constructor
- for key in ['all', 'page', 'per_page', 'sudo', 'next_url']:
+ # These attributes are not needed in the object
+ for key in ['page', 'per_page', 'sudo']:
if key in params:
del params[key]