summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r--gitlab/v4/objects.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index 95ad30a..c4679cd 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -868,7 +868,8 @@ class GroupLabelManager(ListMixin, CreateMixin, UpdateMixin, DeleteMixin, RESTMa
**kwargs: Extra options to send to the server (e.g. sudo)
"""
new_data = new_data or {}
- new_data["name"] = name
+ if name:
+ new_data["name"] = name
super().update(id=None, new_data=new_data, **kwargs)
# Delete without ID.
@@ -3001,7 +3002,8 @@ class ProjectLabelManager(
**kwargs: Extra options to send to the server (e.g. sudo)
"""
new_data = new_data or {}
- new_data["name"] = name
+ if name:
+ new_data["name"] = name
super().update(id=None, new_data=new_data, **kwargs)
# Delete without ID.