Skip to content

Commit d6c87d9

Browse files
author
Gauvain Pocentek
committed
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
1 parent 3804661 commit d6c87d9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gitlab/objects.py

+2
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ def _data_for_gitlab(self, extra_parameters={}, update=False,
222222
value = getattr(self, attribute)
223223
if isinstance(value, list):
224224
value = ",".join(value)
225+
if attribute == 'sudo':
226+
value = str(value)
225227
data[attribute] = value
226228

227229
data.update(extra_parameters)

0 commit comments

Comments
 (0)