Change DATABASE_HOST default to 127.0.0.1
Attempt to fix what is suspected to be a DNS resolution issue with
postgresql check job.
Closes-Bug: #1232748
Change-Id: Ic82e54b2af038e6c21d4f026f3da10f34c3c185c
diff --git a/lib/database b/lib/database
index 442ed56..3c15609 100644
--- a/lib/database
+++ b/lib/database
@@ -64,7 +64,7 @@
# For backward-compatibility, read in the MYSQL_HOST/USER variables and use
# them as the default values for the DATABASE_HOST/USER variables.
- MYSQL_HOST=${MYSQL_HOST:-localhost}
+ MYSQL_HOST=${MYSQL_HOST:-127.0.0.1}
MYSQL_USER=${MYSQL_USER:-root}
DATABASE_HOST=${DATABASE_HOST:-${MYSQL_HOST}}