diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2016-02-16 12:05:48 +0100 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2016-02-19 13:18:48 +0100 |
commit | b36116f9ad3990cb0d5c81ecb6d5b306dc41fbd5 (patch) | |
tree | b0bbb5bd46e58a808321f9a122ddee34b3badfc3 /lib/api/runners.rb | |
parent | dc182dc50e61bc4d4cde3fb32ee29668ad24513b (diff) | |
download | gitlab-ce-b36116f9ad3990cb0d5c81ecb6d5b306dc41fbd5.tar.gz |
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.rb | 4 |
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) |