Merge pull request #242 from jzelinskie/fixstatusendpoint

model: add missing params to validate_database_url
This commit is contained in:
josephschorr 2015-07-15 17:40:41 -04:00
commit 053ceb6220

View file

@ -2776,7 +2776,7 @@ def check_health(app_config):
# making a normal connect which will just hang (thus breaking the health
# check).
try:
validate_database_url(app_config['DB_URI'], connect_timeout=3)
validate_database_url(app_config['DB_URI'], {}, connect_timeout=3)
except Exception:
logger.exception('Could not connect to the database')
return False