diff --git a/extensions/sessions/extension.py b/extensions/sessions/extension.py index c489f98f1..bf5759b46 100644 --- a/extensions/sessions/extension.py +++ b/extensions/sessions/extension.py @@ -48,7 +48,13 @@ def __init__(self, ctx, info): BaseSetup.__init__(self, ctx, info) def session_save_path(self): - return "tcp://%s:%s?auth=%s" % ( + uri = self.creds.get('uri', '') + if uri.startswith('rediss://'): + scheme = 'tls' + else: + scheme = 'tcp' + return "%s://%s:%s?auth=%s" % ( + scheme, self.creds.get('hostname', self.creds.get('host', 'not-found')), self.creds.get('port', 'not-found'),