From 7aafacd3d42373a01d73bfd975dbc04b693e8993 Mon Sep 17 00:00:00 2001 From: dengzhiyong Date: Fri, 26 Feb 2016 16:16:05 +0800 Subject: [PATCH] add password support --- celery_redis_sentinel/redis_sentinel.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/celery_redis_sentinel/redis_sentinel.py b/celery_redis_sentinel/redis_sentinel.py index b300935..f02f5e4 100644 --- a/celery_redis_sentinel/redis_sentinel.py +++ b/celery_redis_sentinel/redis_sentinel.py @@ -13,6 +13,7 @@ def get_redis_via_sentinel(db, socket_timeout=0.1, redis_class=StrictRedis, connection_pool_class=SentinelConnectionPool, + password=None, **kwargs): """ Helper function for getting ``Redis`` instance via sentinel @@ -55,6 +56,7 @@ def get_redis_via_sentinel(db, db=db, redis_class=redis_class, connection_pool_class=connection_pool_class, + password=password, )