Fix error causing single-host HA environments to report not HA.

This commit is contained in:
Luke Sneeringer 2014-12-17 12:20:01 -06:00
parent 0ffa7588e1
commit 719ae63a28

View File

@ -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