summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects.py
diff options
context:
space:
mode:
authorMax Wittig <max.wittig@siemens.com>2019-11-14 12:14:52 +0100
committerGitHub <noreply@github.com>2019-11-14 12:14:52 +0100
commitc937338b0119b08b358f97b4716c56777ee7bb80 (patch)
tree90c7bb22efa134c69980f35a3b163249145194b0 /gitlab/v4/objects.py
parent960888628617beae75392dcdcb6ef5a66abd976d (diff)
parent727f53619dba47f0ab770e4e06f1cb774e14f819 (diff)
downloadgitlab-c937338b0119b08b358f97b4716c56777ee7bb80.tar.gz
Merge pull request #937 from sathieu/fix_labels_save
fix(labels): ensure label.save() works
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r--gitlab/v4/objects.py4
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)