summaryrefslogtreecommitdiff
path: root/gitlab/objects.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2016-12-26 19:22:08 +0100
committerGauvain Pocentek <gauvain@pocentek.net>2016-12-26 19:22:11 +0100
commitd6c87d956eaaeafe2bd4b0e65b42e1afdf0e10bb (patch)
tree080168716ab138db2e61cc30a7f545a7d366e91a /gitlab/objects.py
parent3804661f2c1336eaac0648cf9d0fc47687244e02 (diff)
downloadgitlab-d6c87d956eaaeafe2bd4b0e65b42e1afdf0e10bb.tar.gz
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
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r--gitlab/objects.py2
1 files changed, 2 insertions, 0 deletions
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)