Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd6c87d9

Browse files
author
Gauvain Pocentek
committed
sudo: always use strings
The behavior seems to have changed on recent gitlab releases andproviding an ID as int doesn't work anymore. Using a string seems tomake things work again.Fixes#193
1 parent3804661 commitd6c87d9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎gitlab/objects.py

Lines changed: 2 additions & 0 deletions
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
ifisinstance(value,list):
224224
value=",".join(value)
225+
ifattribute=='sudo':
226+
value=str(value)
225227
data[attribute]=value
226228

227229
data.update(extra_parameters)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp