mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 00:38:45 -03:30
Fix error causing single-host HA environments to report not HA.
This commit is contained in:
@@ -15,7 +15,7 @@ def is_ha_environment():
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
# If the database is not local, then we are in an HA environment.
|
# If the database is not local, then we are in an HA environment.
|
||||||
host = settings.DATABASES['default'].get('host', 'localhost')
|
host = settings.DATABASES['default'].get('HOST', 'localhost')
|
||||||
if host and host.lower() not in ('127.0.0.1', 'localhost'):
|
if host and host.lower() not in ('127.0.0.1', 'localhost'):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user