Merge pull request #332 from gavinpc-mindgrub/use-redis-password
Use Redis password from configuration when present.
This commit is contained in:
commit
3808d52487
|
@ -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)))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue