diff options
author | nateatkins <nateatkins@cakeinsure.com> | 2018-11-25 12:05:27 -0700 |
---|---|---|
committer | Max Wittig <max.wittig95@gmail.com> | 2019-07-21 18:35:04 +0200 |
commit | b7662039d191ebb6a4061c276e78999e2da7cd3f (patch) | |
tree | 470b4623abc492f387302b8cee95a245a24fa617 /gitlab/mixins.py | |
parent | 8f1ed933f58f36b5383c3f862a59ce73e7954f02 (diff) | |
download | gitlab-project-variable-update.tar.gz |
fix(cli): fix update value for key not workingproject-variable-update
Diffstat (limited to 'gitlab/mixins.py')
-rw-r--r-- | gitlab/mixins.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gitlab/mixins.py b/gitlab/mixins.py index b1309f6..7cbb7b9 100644 --- a/gitlab/mixins.py +++ b/gitlab/mixins.py @@ -208,6 +208,8 @@ class CreateMixin(object): class UpdateMixin(object): def _check_missing_update_attrs(self, data): required, optional = self.get_update_attrs() + # Remove the id field from the required list as it was previously moved to the http path. + required = tuple(filter(lambda k: k != self._obj_cls._id_attr, required)) missing = [] for attr in required: if attr not in data: |