Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Chojnacki <pawel@chojnacki.ws>2017-06-06 14:16:55 +0300
committerPawel Chojnacki <pawel@chojnacki.ws>2017-06-06 14:16:55 +0300
commit4679107fdce6d88733c82329495b667d1a032217 (patch)
treec80f9714fb37357f182a02f58cde963bf4b61c9d /db/fixtures
parentd26573c6e3de535f69437deaf54d5c151ac343c8 (diff)
Handle case where GITLAB_PROMETHEUS_METRICS_ENABLED is non boolean value by defaulting to false
Diffstat (limited to 'db/fixtures')
-rw-r--r--db/fixtures/production/010_settings.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/fixtures/production/010_settings.rb b/db/fixtures/production/010_settings.rb
index a81782d16ff..7626cdb0b9c 100644
--- a/db/fixtures/production/010_settings.rb
+++ b/db/fixtures/production/010_settings.rb
@@ -20,7 +20,7 @@ end
if ENV['GITLAB_PROMETHEUS_METRICS_ENABLED'].present?
settings = Gitlab::CurrentSettings.current_application_settings
- value = Gitlab::Utils.to_boolean(ENV['GITLAB_PROMETHEUS_METRICS_ENABLED'])
+ value = Gitlab::Utils.to_boolean(ENV['GITLAB_PROMETHEUS_METRICS_ENABLED']) || false
settings.prometheus_metrics_enabled = value
save(settings, 'Prometheus metrics enabled flag')
end