diff options
author | Eli Sarver <eli.sarver@gmail.com> | 2017-06-16 16:21:50 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-16 16:21:50 -0400 |
commit | d41e9728c0f583e031313419bcf998bfdfb8688a (patch) | |
tree | 64bab85b1705ce89946d759e2fe31cbc16457d7f | |
parent | 19f1b1a968aba7bd9604511c015e8930e5111324 (diff) | |
download | gitlab-d41e9728c0f583e031313419bcf998bfdfb8688a.tar.gz |
Missing expires_at in GroupMembers update
CreateAttrs was set twice in GroupMember due to possible copy-paste error.
-rw-r--r-- | gitlab/v4/objects.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index d1d589e..01c453f 100644 --- a/gitlab/v4/objects.py +++ b/gitlab/v4/objects.py @@ -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): |