Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
fix issue when having ssl=False
Browse files Browse the repository at this point in the history
  • Loading branch information
d33kayyy authored and Grokzen committed Jan 8, 2019
1 parent 3842199 commit 4a499a9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion rediscluster/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def __init__(self, host=None, port=None, startup_nodes=None, max_connections=Non
if "db" in kwargs:
raise RedisClusterException("Argument 'db' is not possible to use in cluster mode")

if kwargs.get('ssl', False):
if kwargs.pop('ssl', False): # Needs to be removed to avoid exception in redis Connection init
connection_class = SSLClusterConnection

if "connection_pool" in kwargs:
Expand Down
1 change: 0 additions & 1 deletion rediscluster/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ class SSLClusterConnection(SSLConnection):
def __init__(self, **kwargs):
self.readonly = kwargs.pop('readonly', False)
kwargs['parser_class'] = ClusterParser
kwargs.pop('ssl', None) # Needs to be removed to avoid exception in redis Connection init
super(SSLClusterConnection, self).__init__(**kwargs)

def on_connect(self):
Expand Down

0 comments on commit 4a499a9

Please sign in to comment.