mirror of
https://github.com/ansible/awx.git
synced 2026-04-10 20:49:24 -02:30
Small fix to license expire time check
This commit is contained in:
@@ -359,7 +359,7 @@ class HostAccess(BaseAccess):
|
|||||||
# but still go down *most* of the license code path.
|
# but still go down *most* of the license code path.
|
||||||
validation_info['free_instances'] = 99999999
|
validation_info['free_instances'] = 99999999
|
||||||
|
|
||||||
if not validation_info.get('demo') and validation_info.get('time_remaining') < 0:
|
if not validation_info.get('demo') and validation_info.get('time_remaining') <= 0:
|
||||||
raise PermissionDenied("license has expired")
|
raise PermissionDenied("license has expired")
|
||||||
|
|
||||||
if validation_info.get('free_instances', 0) > 0:
|
if validation_info.get('free_instances', 0) > 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user