Use Redis password from configuration when present.
This commit is contained in:
parent
dcbc5d5d05
commit
9f8b98e54f
|
@ -64,6 +64,7 @@ def get_connection_redis():
|
||||||
import redis
|
import redis
|
||||||
return redis.StrictRedis(host=config.get('ckan.harvest.mq.hostname', HOSTNAME),
|
return redis.StrictRedis(host=config.get('ckan.harvest.mq.hostname', HOSTNAME),
|
||||||
port=int(config.get('ckan.harvest.mq.port', REDIS_PORT)),
|
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)))
|
db=int(config.get('ckan.harvest.mq.redis_db', REDIS_DB)))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue