diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2017-07-20 16:33:18 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2017-07-20 16:33:18 +0300 |
commit | 6b8ad689da393125bb2d1e548211c9a50039b0a7 (patch) | |
tree | eb35d412b07e28c58d9cbd017ca357ae16aefef0 /lib/api/runners.rb | |
parent | 4766a77b1d44bb6989e6c86a7a7dd10f6983ba4e (diff) | |
download | gitlab-ce-6b8ad689da393125bb2d1e548211c9a50039b0a7.tar.gz |
Update grape gemdz-update-grape
New version of the gem returns 200 status code on delete with content
instead of 204 so we explicitly set status code to keep existing
behavior
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/api/runners.rb')
-rw-r--r-- | lib/api/runners.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api/runners.rb b/lib/api/runners.rb index db6c7c59092..5bf5a18e42f 100644 --- a/lib/api/runners.rb +++ b/lib/api/runners.rb @@ -79,6 +79,7 @@ module API runner = get_runner(params[:id]) authenticate_delete_runner!(runner) + status 204 runner.destroy! end end @@ -134,6 +135,7 @@ module API runner = runner_project.runner forbidden!("Only one project associated with the runner. Please remove the runner instead") if runner.projects.count == 1 + status 204 runner_project.destroy end end |