Commit 085ebf8b authored by Caleb Cooper's avatar Caleb Cooper Committed by Robert Speicher

Update lib/tasks/gitlab/license.rake for license

Update license.rake to check if a license exists
parent cc2b1f4f
---
title: Fix gitlab-rake gitlab:license:info crashing when no license exists
merge_request: 39143
author:
type: fixed
......@@ -5,6 +5,7 @@ namespace :gitlab do
desc 'GitLab | License | Gather license related information'
task info: :gitlab_environment do
license = Gitlab::UsageData.license_usage_data
abort("No license has been applied.") unless license[:license_plan]
puts "Today's Date: #{Date.today}"
puts "Current User Count: #{license[:active_user_count]}"
puts "Max Historical Count: #{license[:historical_max_users]}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment