mirror of
https://github.com/ansible/awx.git
synced 2026-05-09 10:27:37 -02:30
Remove the Instance.objects.active_count() method
Literally nothing uses it. The similar Host.objects.active_count() method seems to be what is actually important for licensing.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user