summaryrefslogtreecommitdiff
path: root/gitlab/v4/objects.py
diff options
context:
space:
mode:
authorMateusz Filipowicz <mateusz.filipowicz@roche.com>2020-02-05 15:26:06 +0100
committerMateusz Filipowicz <mateusz.filipowicz@roche.com>2020-02-07 11:00:18 +0100
commit1ec1816d7c76ae079ad3b3e3b7a1bae70e0dd95b (patch)
tree20a78c9ea8d2907bd3fbe83bb8b32db7dce4b5e5 /gitlab/v4/objects.py
parent7f192b4f8734e29a63f1c79be322c25d45cfe23f (diff)
downloadgitlab-1ec1816d7c76ae079ad3b3e3b7a1bae70e0dd95b.tar.gz
fix: remove null values from features POST data, because it fails
with HTTP 500
Diffstat (limited to 'gitlab/v4/objects.py')
-rw-r--r--gitlab/v4/objects.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py
index f18f733..ed65d7b 100644
--- a/gitlab/v4/objects.py
+++ b/gitlab/v4/objects.py
@@ -760,6 +760,7 @@ class FeatureManager(ListMixin, DeleteMixin, RESTManager):
"group": group,
"project": project,
}
+ data = utils.remove_none_from_dict(data)
server_data = self.gitlab.http_post(path, post_data=data, **kwargs)
return self._obj_cls(self, server_data)