[14350] Fixing linter errors

This commit is contained in:
Andrii Kysylevskyi 2025-11-15 00:42:14 +00:00
parent 88653cd0ba
commit 36fa7ac2ab
2 changed files with 8 additions and 2 deletions

View File

@ -22,7 +22,10 @@ class Task(TaskBase):
class CassandraConnection:
def __init__(self, hosts=["cassandra"], port=9042):
def __init__(self, hosts=None, port=9042):
if hosts is None:
hosts = ["cassandra"]
self.cluster = Cluster(hosts, port=port)
self.session = None
self.keyspace = "task_manager"

View File

@ -22,7 +22,10 @@ class Task(TaskBase):
class ScyllaDBConnection:
def __init__(self, hosts=["scylladb"], port=9042):
def __init__(self, hosts=None, port=9042):
if hosts is None:
hosts = ["scylladb"]
self.cluster = Cluster(hosts, port=port)
self.session = None
self.keyspace = "task_manager"