diff options
author | Max Wittig <max.wittig@siemens.com> | 2019-11-14 12:14:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-14 12:14:52 +0100 |
commit | c937338b0119b08b358f97b4716c56777ee7bb80 (patch) | |
tree | 90c7bb22efa134c69980f35a3b163249145194b0 | |
parent | 960888628617beae75392dcdcb6ef5a66abd976d (diff) | |
parent | 727f53619dba47f0ab770e4e06f1cb774e14f819 (diff) | |
download | gitlab-c937338b0119b08b358f97b4716c56777ee7bb80.tar.gz |
Merge pull request #937 from sathieu/fix_labels_save
fix(labels): ensure label.save() works
-rw-r--r-- | gitlab/v4/objects.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index 24f623d..3ac7a4a 100644 --- a/gitlab/v4/objects.py +++ b/gitlab/v4/objects.py @@ -914,7 +914,7 @@ class GroupLabelManager(ListMixin, CreateMixin, UpdateMixin, DeleteMixin, RESTMa new_data = new_data or {} if name: new_data["name"] = name - super().update(id=None, new_data=new_data, **kwargs) + return super().update(id=None, new_data=new_data, **kwargs) # Delete without ID. @exc.on_http_error(exc.GitlabDeleteError) @@ -3049,7 +3049,7 @@ class ProjectLabelManager( new_data = new_data or {} if name: new_data["name"] = name - super().update(id=None, new_data=new_data, **kwargs) + return super().update(id=None, new_data=new_data, **kwargs) # Delete without ID. @exc.on_http_error(exc.GitlabDeleteError) |