diff options
author | Tyler Yates <tyates@indeed.com> | 2020-06-22 16:14:57 -0500 |
---|---|---|
committer | Tyler Yates <tyates@indeed.com> | 2020-06-22 16:14:57 -0500 |
commit | 72ffa0164edc44a503364f9b7e25c5b399f648c3 (patch) | |
tree | 0860415b0f90c0fe20cd6133388a1aa447a461e9 | |
parent | 1d011ac72aeb18b5f31d10e42ffb49cf703c3e3a (diff) | |
download | gitlab-72ffa0164edc44a503364f9b7e25c5b399f648c3.tar.gz |
fix: make query kwargs consistent between call in init and next
-rw-r--r-- | gitlab/__init__.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gitlab/__init__.py b/gitlab/__init__.py index ea29524..53815f8 100644 --- a/gitlab/__init__.py +++ b/gitlab/__init__.py @@ -777,8 +777,6 @@ class GitlabList(object): def __init__(self, gl, url, query_data, get_next=True, **kwargs): self._gl = gl - self._query(url, query_data, **kwargs) - self._get_next = get_next # Preserve kwargs for subsequent queries if kwargs is None: @@ -786,6 +784,9 @@ class GitlabList(object): else: self._kwargs = kwargs.copy() + self._query(url, query_data, **self._kwargs) + self._get_next = get_next + def _query(self, url, query_data=None, **kwargs): query_data = query_data or {} result = self._gl.http_request("get", url, query_data=query_data, **kwargs) |