From 376cfc6ac68da97af33dfdc1a17e75ab157f5b59 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Thu, 28 Nov 2013 18:12:30 +0100 Subject: [PATCH] Give more information in rake gitlab:ldap:check --- lib/tasks/gitlab/check.rake | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/tasks/gitlab/check.rake b/lib/tasks/gitlab/check.rake index 5f6856a63..1cea4ff80 100644 --- a/lib/tasks/gitlab/check.rake +++ b/lib/tasks/gitlab/check.rake @@ -682,12 +682,14 @@ namespace :gitlab do namespace :ldap do task check: :environment do - next unless ldap_config.enabled - warn_user_is_not_gitlab start_checking "LDAP" - print_users + if ldap_config.enabled + print_users + else + puts 'LDAP is disabled in config/gitlab.yml' + end finished_checking "LDAP" end -- 2.11.0