diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2018-05-23 15:28:14 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-05-23 15:28:14 +0000 |
commit | 58313de43091a535b2e540d77e5d863bbd5021f1 (patch) | |
tree | 9a211106836d34cf4e7c077ec0f6d4fd8d4996e3 /app/controllers/projects/prometheus | |
parent | a2dbca4a27b8f380652bf1165f89238895b0f5d8 (diff) | |
download | gitlab-ce-58313de43091a535b2e540d77e5d863bbd5021f1.tar.gz |
Render 404 when prometheus adapter is disabled in Prometheus metrics controller
Diffstat (limited to 'app/controllers/projects/prometheus')
-rw-r--r-- | app/controllers/projects/prometheus/metrics_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/prometheus/metrics_controller.rb b/app/controllers/projects/prometheus/metrics_controller.rb index 1dd886409a5..c6b6243b553 100644 --- a/app/controllers/projects/prometheus/metrics_controller.rb +++ b/app/controllers/projects/prometheus/metrics_controller.rb @@ -25,7 +25,7 @@ module Projects end def require_prometheus_metrics! - render_404 unless prometheus_adapter.can_query? + render_404 unless prometheus_adapter&.can_query? end end end |