Use Redis password from configuration when present.

This commit is contained in:
Gavin Cannizzaro 2018-07-12 10:14:24 -04:00
parent dcbc5d5d05
commit 9f8b98e54f
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ def get_connection_redis():
import redis
return redis.StrictRedis(host=config.get('ckan.harvest.mq.hostname', HOSTNAME),
port=int(config.get('ckan.harvest.mq.port', REDIS_PORT)),
password=config.get('ckan.harvest.mq.password', None),
db=int(config.get('ckan.harvest.mq.redis_db', REDIS_DB)))