Namespace the Gitlab constant to avoid NameError

What does this MR do and why?

By looking at a Review App migrations job, I noticed that when the license failed to be created, the following NameError was thrown:

NameError: uninitialized constant Tasks::Gitlab::License
Did you mean? Licenses

/srv/gitlab/ee/lib/tasks/gitlab/license.rake:65:in `rescue in seed_license'
/srv/gitlab/ee/lib/tasks/gitlab/license.rake:62:in `seed_license'
/srv/gitlab/ee/lib/tasks/gitlab/license.rake:23:in `block (3 levels) in initialize'

Namespacing the consstant solves this.

This line was introduced in !85524 (merged).

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #409349 (comment 1385065203).

Edited by Rémy Coutable

Merge request reports

Loading