1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 01:21:21 +03:00

Small fix to license expire time check

This commit is contained in:
Matthew Jones 2014-02-25 14:53:37 -05:00
parent 8c9a98befc
commit a1ec54920f

View File

@ -359,7 +359,7 @@ class HostAccess(BaseAccess):
# but still go down *most* of the license code path.
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")
if validation_info.get('free_instances', 0) > 0: