Skip to content

Commit

Permalink
Merge pull request #262 from jfrog/use-singular-license-api-endpoint
Browse files Browse the repository at this point in the history
Use singular form of the license API endpoint
  • Loading branch information
danielmkn authored Jan 5, 2022
2 parents 3e3665c + 76d9acb commit 6729986
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/artifactory/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func checkArtifactoryLicense(client *resty.Client) error {
licensesWrapper := LicensesWrapper{}
_, err := client.R().
SetResult(&licensesWrapper).
Get("/artifactory/api/system/licenses")
Get("/artifactory/api/system/license")

if err != nil {
return fmt.Errorf("Failed to check for license. If your usage doesn't require admin permission, you can set `check_license` attribute to `false` to skip this check. %s", err)
Expand Down

0 comments on commit 6729986

Please sign in to comment.