mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
Fix error causing single-host HA environments to report not HA.
This commit is contained in:
parent
0ffa7588e1
commit
719ae63a28
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user