Skip to content

Commit

Permalink
Properly handle extra args when listing with all=True
Browse files Browse the repository at this point in the history
Fixes #233
  • Loading branch information
Gauvain Pocentek committed Mar 17, 2017
1 parent e39d7ea commit 3b38844
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gitlab/__init__.py
Expand Up @@ -337,6 +337,7 @@ def _raw_list(self, path_, cls, extra_attrs={}, **kwargs):
if ('next' in r.links and 'url' in r.links['next']
and get_all_results is True):
args = kwargs.copy()
args.update(extra_attrs)
args['next_url'] = r.links['next']['url']
results.extend(self.list(cls, **args))
return results
Expand Down

0 comments on commit 3b38844

Please sign in to comment.