diff options
-rw-r--r-- | lib/tasks/gitlab/check.rake | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/tasks/gitlab/check.rake b/lib/tasks/gitlab/check.rake index 5f6856a63e3..1cea4ff806c 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 |