diff options
author | Simon Knox <psimyn@gmail.com> | 2019-06-05 10:12:10 +0300 |
---|---|---|
committer | syasonik <syasonik@gitlab.com> | 2019-06-06 13:43:50 +0300 |
commit | 8980b714902361edc2b0441301978d8a277c9b6e (patch) | |
tree | e53f5edf2c143589d2321420dd20290a858c5fad /app/controllers | |
parent | e53f475e4a6aaaee526e95c2e922e87b4ef98d32 (diff) |
Return no_content from prometheus API empty response
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/environments/prometheus_api_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/environments/prometheus_api_controller.rb b/app/controllers/projects/environments/prometheus_api_controller.rb index f8ef23cd83e..9c6c6513a78 100644 --- a/app/controllers/projects/environments/prometheus_api_controller.rb +++ b/app/controllers/projects/environments/prometheus_api_controller.rb @@ -13,7 +13,7 @@ class Projects::Environments::PrometheusApiController < Projects::ApplicationCon ).execute if result.nil? - return render status: :accepted, json: { + return render status: :no_content, json: { status: _('processing'), message: _('Not ready yet. Try again later.') } |