From d6c87d956eaaeafe2bd4b0e65b42e1afdf0e10bb Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Mon, 26 Dec 2016 19:22:08 +0100 Subject: sudo: always use strings The behavior seems to have changed on recent gitlab releases and providing an ID as int doesn't work anymore. Using a string seems to make things work again. Fixes #193 --- gitlab/objects.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gitlab') diff --git a/gitlab/objects.py b/gitlab/objects.py index 7a442ef..2a33dc5 100644 --- a/gitlab/objects.py +++ b/gitlab/objects.py @@ -222,6 +222,8 @@ class GitlabObject(object): value = getattr(self, attribute) if isinstance(value, list): value = ",".join(value) + if attribute == 'sudo': + value = str(value) data[attribute] = value data.update(extra_parameters) -- cgit v1.2.1