diff options
| author | Max Wittig <max.wittig95@gmail.com> | 2019-07-21 18:54:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-21 18:54:42 +0200 |
| commit | 6c673c6b052cd5b18ba5b1f83137485431666730 (patch) | |
| tree | 4bbda44519c25c130503a88f4457a389065d4899 /gitlab | |
| parent | 8306ef21be731336c9706c9908133cfcb3b6a5f4 (diff) | |
| parent | b7662039d191ebb6a4061c276e78999e2da7cd3f (diff) | |
| download | gitlab-6c673c6b052cd5b18ba5b1f83137485431666730.tar.gz | |
Merge pull request #833 from python-gitlab/project-variable-update
fix(cli): fix update value for key not working
Diffstat (limited to 'gitlab')
| -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: |
