Skip to content

Commit

Permalink
Missing expires_at in GroupMembers update
Browse files Browse the repository at this point in the history
CreateAttrs was set twice in GroupMember due to possible copy-paste error.
  • Loading branch information
elisarver committed Jun 16, 2017
1 parent 19f1b1a commit d41e972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitlab/v4/objects.py
Expand Up @@ -362,7 +362,7 @@ class GroupMember(GitlabObject):
requiredCreateAttrs = ['access_level', 'user_id']
optionalCreateAttrs = ['expires_at']
requiredUpdateAttrs = ['access_level']
optionalCreateAttrs = ['expires_at']
optionalUpdateAttrs = ['expires_at']
shortPrintAttr = 'username'

def _update(self, **kwargs):
Expand Down

0 comments on commit d41e972

Please sign in to comment.