Merge pull request #332 from gavinpc-mindgrub/use-redis-password

Use Redis password from configuration when present.
This commit is contained in:
Adrià Mercader 2018-10-25 12:18:56 +02:00 committed by GitHub
commit 3808d52487
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)))