Skip to content

Commit 3b16e5e

Browse files
committed
Remove Pagination for getsshkeys
`getsshkeys` should also not have pagination, as per [List SSH keys](http://doc.gitlab.com/ce/api/users.html#list-ssh-keys). (and verified)
1 parent 87d4a5b commit 3b16e5e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

gitlab/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,12 @@ def edituser(self, user_id, **kwargs):
183183
else:
184184
return False
185185

186-
def getsshkeys(self, page=1, per_page=20):
186+
def getsshkeys(self):
187187
"""Gets all the ssh keys for the current user
188188
189189
:return: a dictionary with the lists
190190
"""
191-
data = {'page': page, 'per_page': per_page}
192-
request = requests.get(self.keys_url, headers=self.headers, params=data,
191+
request = requests.get(self.keys_url, headers=self.headers,
193192
verify=self.verify_ssl)
194193
if request.status_code == 200:
195194
return json.loads(request.content.decode("utf-8"))

0 commit comments

Comments
 (0)