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:
Jeff Bradberry
2022-01-14 16:21:41 -05:00
parent 6dda5f477e
commit bb14a95076
2 changed files with 1 additions and 5 deletions

View File

@@ -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.