diff options
author | Mika Mäenpää <mika.j.maenpaa@tut.fi> | 2014-10-09 10:30:41 +0300 |
---|---|---|
committer | Mika Mäenpää <mika.j.maenpaa@tut.fi> | 2014-10-10 15:48:18 +0300 |
commit | afcf1c23c36a7aa0f65392892ca4abb973e35b43 (patch) | |
tree | 50a60db302e2cfaa2ce7902363a42985b30efc25 /gitlab.py | |
parent | ff2d84c5f4ab1f492781c2f821347f94754991be (diff) | |
download | gitlab-afcf1c23c36a7aa0f65392892ca4abb973e35b43.tar.gz |
CurrentUser.Key uses _getListOrObject-method
Diffstat (limited to 'gitlab.py')
-rw-r--r-- | gitlab.py | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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' |