mirror of
https://github.com/ansible/awx.git
synced 2026-05-13 04:17:36 -02:30
Test for HA license before allowing cluster job start
This commit is contained in:
@@ -36,6 +36,10 @@ class InstanceManager(models.Manager):
|
||||
return node[0]
|
||||
raise RuntimeError("No instance found with the current cluster host id")
|
||||
|
||||
def active_count(self):
|
||||
"""Return count of active Tower nodes for licensing."""
|
||||
return self.all().count()
|
||||
|
||||
def my_role(self):
|
||||
# NOTE: TODO: Likely to repurpose this once standalone ramparts are a thing
|
||||
return "tower"
|
||||
|
||||
Reference in New Issue
Block a user