mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 23:16:01 -03:30
Report single node clusters as non-ha (#11212)
* Report single node clusters as non-ha * Move test file so we can make it use the database * Update unit test to accomidate different node types
This commit is contained in:
@@ -10,6 +10,6 @@ def is_ha_environment():
|
||||
otherwise.
|
||||
"""
|
||||
# If there are two or more instances, then we are in an HA environment.
|
||||
if Instance.objects.count() > 1:
|
||||
if Instance.objects.filter(node_type__in=('control', 'hybrid')).count() > 1:
|
||||
return True
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user