diff options
author | Max Wittig <max.wittig95@gmail.com> | 2019-12-08 13:08:24 +0100 |
---|---|---|
committer | Max Wittig <max.wittig95@gmail.com> | 2019-12-08 13:08:24 +0100 |
commit | 137d72b3bc00588f68ca13118642ecb5cd69e6ac (patch) | |
tree | 5e27e8d37841c4e316252eafcf989257cedfdb1e | |
parent | 18913ddce18f78e7432f4d041ab4bd071e57b256 (diff) | |
download | gitlab-137d72b3bc00588f68ca13118642ecb5cd69e6ac.tar.gz |
fix: ignore all parameter, when as_list=True
Closes #962
-rw-r--r-- | gitlab/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/__init__.py b/gitlab/__init__.py index 883bb44..3605b80 100644 --- a/gitlab/__init__.py +++ b/gitlab/__init__.py @@ -630,7 +630,7 @@ class Gitlab(object): get_all = kwargs.pop("all", False) url = self._build_url(path) - if get_all is True: + if get_all is True and as_list is True: return list(GitlabList(self, url, query_data, **kwargs)) if "page" in kwargs or as_list is True: |