From 9f8b98e54f23ee97212209c2880faae7d3dc71c8 Mon Sep 17 00:00:00 2001 From: Gavin Cannizzaro Date: Thu, 12 Jul 2018 10:14:24 -0400 Subject: [PATCH] Use Redis password from configuration when present. --- ckanext/harvest/queue.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ckanext/harvest/queue.py b/ckanext/harvest/queue.py index 482305e..d211e88 100644 --- a/ckanext/harvest/queue.py +++ b/ckanext/harvest/queue.py @@ -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)))