Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
085ebf8b
Commit
085ebf8b
authored
Aug 11, 2020
by
Caleb Cooper
Committed by
Robert Speicher
Aug 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update lib/tasks/gitlab/license.rake for license
Update license.rake to check if a license exists
parent
cc2b1f4f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
changelogs/unreleased/cc-license-check-test-for-license.yml
changelogs/unreleased/cc-license-check-test-for-license.yml
+5
-0
ee/lib/tasks/gitlab/license.rake
ee/lib/tasks/gitlab/license.rake
+1
-0
No files found.
changelogs/unreleased/cc-license-check-test-for-license.yml
0 → 100644
View file @
085ebf8b
---
title
:
Fix gitlab-rake gitlab:license:info crashing when no license exists
merge_request
:
39143
author
:
type
:
fixed
ee/lib/tasks/gitlab/license.rake
View file @
085ebf8b
...
...
@@ -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
]
}
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment