summaryrefslogtreecommitdiff
path: root/lib/api/environments.rb
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-08-30 11:20:34 +0100
committerPhil Hughes <me@iamphill.com>2017-08-30 11:20:34 +0100
commit75c4d2659bbcd51efc44123f3ab2c6496fa0eee2 (patch)
tree3b64f1f2d6c532c4472be1ff50662774a3299fa6 /lib/api/environments.rb
parenta8460f215cc1949b993e774dc00bad0b506abcfa (diff)
parent978b4b9cc0374c9cb5680612fe4154f393bbba9c (diff)
downloadgitlab-ce-75c4d2659bbcd51efc44123f3ab2c6496fa0eee2.tar.gz
Merge branch 'master' into breadcrumbs-improvements
Diffstat (limited to 'lib/api/environments.rb')
-rw-r--r--lib/api/environments.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/api/environments.rb b/lib/api/environments.rb
index c774a5c6685..e33269f9483 100644
--- a/lib/api/environments.rb
+++ b/lib/api/environments.rb
@@ -79,8 +79,7 @@ module API
environment = user_project.environments.find(params[:environment_id])
- status 204
- environment.destroy
+ destroy_conditionally!(environment)
end
desc 'Stops an existing environment' do