From 0587583f19ae05f069be4bd4dfbabbbce89856c1 Mon Sep 17 00:00:00 2001 From: Chris Church Date: Fri, 14 Mar 2014 12:32:43 -0400 Subject: [PATCH] Allow inventory import to work with demo license. --- awx/main/management/commands/inventory_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/management/commands/inventory_import.py b/awx/main/management/commands/inventory_import.py index 31df67c6df..eef509061e 100644 --- a/awx/main/management/commands/inventory_import.py +++ b/awx/main/management/commands/inventory_import.py @@ -742,7 +742,7 @@ class Command(NoArgsCommand): free_instances = license_info.get('free_instances', 0) time_remaining = license_info.get('time_remaining', 0) 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') raise CommandError("License has expired!") if free_instances < 0: