[QUEUED scylladb next] test.py: fix variable name ssl name clash

0 views
Skip to first unread message

Commit Bot

<bot@cloudius-systems.com>
unread,
Oct 4, 2022, 5:51:23 AM10/4/22
to scylladb-dev@googlegroups.com, Alejo Sanchez
From: Alejo Sanchez <alejo....@scylladb.com>
Committer: Alejo Sanchez <alejo....@scylladb.com>
Branch: next

test.py: fix variable name ssl name clash

Change variable ssl to use_ssl to avoid clash with ssl module.

Signed-off-by: Alejo Sanchez <alejo....@scylladb.com>

---
diff --git a/test/pylib/manager_client.py b/test/pylib/manager_client.py
--- a/test/pylib/manager_client.py
+++ b/test/pylib/manager_client.py
@@ -31,10 +31,10 @@ class ManagerClient():
conn: aiohttp.UnixConnector
session: aiohttp.ClientSession

- def __init__(self, sock_path: str, port: int, ssl: bool,
+ def __init__(self, sock_path: str, port: int, use_ssl: bool,
con_gen: Optional[Callable[[List[str], int, bool], CassandraSession]]) -> None:
self.port = port
- self.ssl = ssl
+ self.use_ssl = use_ssl
self.con_gen = con_gen
self.ccluster: Optional[CassandraCluster] = None
self.cql: Optional[CassandraSession] = None
@@ -57,7 +57,7 @@ async def driver_connect(self) -> None:
if self.con_gen is not None:
servers = await self.servers()
logger.debug("driver connecting to %s", servers)
- self.ccluster = self.con_gen(servers, self.port, self.ssl)
+ self.ccluster = self.con_gen(servers, self.port, self.use_ssl)
self.cql = self.ccluster.connect()

def driver_close(self) -> None:

Commit Bot

<bot@cloudius-systems.com>
unread,
Oct 4, 2022, 2:50:19 PM10/4/22
to scylladb-dev@googlegroups.com, Alejo Sanchez
From: Alejo Sanchez <alejo....@scylladb.com>
Committer: Alejo Sanchez <alejo....@scylladb.com>
Branch: master
Reply all
Reply to author
Forward
0 new messages