summaryrefslogtreecommitdiff
path: root/gitlab
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2016-09-03 19:14:45 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2016-09-03 19:14:45 +0200
commitdc3dcd11f3921929cc13260fbfb13aa3ae5117ce (patch)
tree0778c356141735275ab6c8d5b4e39e57a57f901c /gitlab
parentb815f3a1f58cd697b4b95f6f0b24883282e09f77 (diff)
downloadgitlab-dc3dcd11f3921929cc13260fbfb13aa3ae5117ce.tar.gz
Properly fix _raw_list
Diffstat (limited to 'gitlab')
-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]