summaryrefslogtreecommitdiff
path: root/gitlab.py
diff options
context:
space:
mode:
authorMika Mäenpää <mika.j.maenpaa@tut.fi>2014-10-09 10:30:41 +0300
committerMika Mäenpää <mika.j.maenpaa@tut.fi>2014-10-10 15:48:18 +0300
commitafcf1c23c36a7aa0f65392892ca4abb973e35b43 (patch)
tree50a60db302e2cfaa2ce7902363a42985b30efc25 /gitlab.py
parentff2d84c5f4ab1f492781c2f821347f94754991be (diff)
downloadgitlab-afcf1c23c36a7aa0f65392892ca4abb973e35b43.tar.gz
CurrentUser.Key uses _getListOrObject-method
Diffstat (limited to 'gitlab.py')
-rw-r--r--gitlab.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/gitlab.py b/gitlab.py
index 50f429e..0214cfb 100644
--- a/gitlab.py
+++ b/gitlab.py
@@ -667,11 +667,7 @@ class CurrentUser(GitlabObject):
shortPrintAttr = 'username'
def Key(self, id=None, **kwargs):
- if id is None:
- return CurrentUserKey.list(self.gitlab, **kwargs)
- else:
- return CurrentUserKey(self.gitlab, id)
-
+ return self._getListOrObject(CurrentUserKey, id, **kwargs)
class GroupMember(GitlabObject):
_url = '/groups/%(group_id)s/members'