diff --git a/awx/main/managers.py b/awx/main/managers.py index 0bc30f649c..fd8ab44f81 100644 --- a/awx/main/managers.py +++ b/awx/main/managers.py @@ -186,10 +186,6 @@ class InstanceManager(models.Manager): else: return (False, self.me()) - def active_count(self): - """Return count of active Tower nodes for licensing.""" - return self.exclude(node_type='hop').count() - class InstanceGroupManager(models.Manager): """A custom manager class for the Instance model. diff --git a/awx/main/tests/functional/test_instances.py b/awx/main/tests/functional/test_instances.py index b669423b9e..c8efd8b39e 100644 --- a/awx/main/tests/functional/test_instances.py +++ b/awx/main/tests/functional/test_instances.py @@ -77,7 +77,7 @@ def test_instance_dup(org_admin, organization, project, instance_factory, instan ig_all = instance_group_factory("all", instances=[i1, i2, i3]) ig_dup = instance_group_factory("duplicates", instances=[i1]) project.organization.instance_groups.add(ig_all, ig_dup) - actual_num_instances = Instance.objects.active_count() + actual_num_instances = Instance.objects.count() list_response = get(reverse('api:instance_list'), user=system_auditor) api_num_instances_auditor = list(list_response.data.items())[0][1]