From 719ae63a28a0fdbb379a5ee61a9bb3216ef283bc Mon Sep 17 00:00:00 2001 From: Luke Sneeringer Date: Wed, 17 Dec 2014 12:20:01 -0600 Subject: [PATCH] Fix error causing single-host HA environments to report not HA. --- awx/main/ha.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/ha.py b/awx/main/ha.py index 1cd4540a87..3d1294defd 100644 --- a/awx/main/ha.py +++ b/awx/main/ha.py @@ -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