summaryrefslogtreecommitdiff
path: root/gitlab/objects.py
diff options
context:
space:
mode:
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)