mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
Use existing config service for license_type checks
This commit is contained in:
@@ -11,12 +11,17 @@ function getTruncatedVersion () {
|
||||
|
||||
return version;
|
||||
}
|
||||
|
||||
function isOpen () {
|
||||
return this.get('license_info.license_type') === 'open';
|
||||
}
|
||||
|
||||
function ConfigModel (method, resource, graft) {
|
||||
BaseModel.call(this, 'config', { cache: true });
|
||||
|
||||
this.Constructor = ConfigModel;
|
||||
this.getTruncatedVersion = getTruncatedVersion;
|
||||
this.isOpen = isOpen;
|
||||
|
||||
return this.create(method, resource, graft);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user