mirror of
https://github.com/ansible/awx.git
synced 2026-03-22 19:35:02 -02:30
Allow inventory import to work with demo license.
This commit is contained in:
@@ -742,7 +742,7 @@ class Command(NoArgsCommand):
|
|||||||
free_instances = license_info.get('free_instances', 0)
|
free_instances = license_info.get('free_instances', 0)
|
||||||
time_remaining = license_info.get('time_remaining', 0)
|
time_remaining = license_info.get('time_remaining', 0)
|
||||||
new_count = Host.objects.filter(active=True).count()
|
new_count = Host.objects.filter(active=True).count()
|
||||||
if time_remaining <= 0:
|
if time_remaining <= 0 and not license_info.get('demo', False):
|
||||||
self.logger.error('License has expired')
|
self.logger.error('License has expired')
|
||||||
raise CommandError("License has expired!")
|
raise CommandError("License has expired!")
|
||||||
if free_instances < 0:
|
if free_instances < 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user