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

Commitac430a3

Browse files
jeromerobertGauvain Pocentek
authored and
Gauvain Pocentek
committed
Fix trigger variables in v4 API (#334)
Fix trigger variables in v4 APIClose#333
1 parent9e09cf6 commitac430a3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

‎gitlab/v4/objects.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
from __future__importabsolute_import
2020
importbase64
2121

22-
importsix
23-
2422
fromgitlab.baseimport*# noqa
2523
fromgitlabimportcli
2624
fromgitlab.exceptionsimport*# noqa
@@ -2080,9 +2078,7 @@ def trigger_pipeline(self, ref, token, variables={}, **kwargs):
20802078
GitlabCreateError: If the server failed to perform the request
20812079
"""
20822080
path='/projects/%s/trigger/pipeline'%self.get_id()
2083-
form= {r'variables[%s]'%k:vfork,vinsix.iteritems(variables)}
2084-
post_data= {'ref':ref,'token':token}
2085-
post_data.update(form)
2081+
post_data= {'ref':ref,'token':token,'variables':variables}
20862082
self.manager.gitlab.http_post(path,post_data=post_data,**kwargs)
20872083

20882084
# see #56 - add file attachment features

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp