mirror of
https://github.com/ansible/awx.git
synced 2026-02-27 15:58: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
|
||||
|
||||
# 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'):
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user