Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2016-02-16 14:05:48 +0300
committerTomasz Maczukin <tomasz@maczukin.pl>2016-02-19 15:18:48 +0300
commitb36116f9ad3990cb0d5c81ecb6d5b306dc41fbd5 (patch)
treeb0bbb5bd46e58a808321f9a122ddee34b3badfc3 /lib/api/runners.rb
parentdc182dc50e61bc4d4cde3fb32ee29668ad24513b (diff)
Move :runner_id param to POST body when enabling specific runner in project
Diffstat (limited to 'lib/api/runners.rb')
-rw-r--r--lib/api/runners.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/api/runners.rb b/lib/api/runners.rb
index 0c158745124..8ec91485b26 100644
--- a/lib/api/runners.rb
+++ b/lib/api/runners.rb
@@ -91,7 +91,9 @@ module API
# runner_id (required) - The ID of the runner
# Example Request:
# POST /projects/:id/runners/:runner_id
- post ':id/runners/:runner_id' do
+ post ':id/runners' do
+ required_attributes! [:runner_id]
+
runner = get_runner(params[:runner_id])
authenticate_enable_runner!(runner)
Ci::RunnerProject.create(runner: runner, project: user_project)