Automatic style fix

This commit is contained in:
robot-clickhouse 2023-01-17 21:34:16 +00:00
parent 6e06af1b25
commit 237bb15a9f

View File

@ -19,25 +19,33 @@ def generate_cluster_def():
) )
os.makedirs(os.path.dirname(path), exist_ok=True) os.makedirs(os.path.dirname(path), exist_ok=True)
with open(path, "w") as f: with open(path, "w") as f:
f.write(""" f.write(
"""
<clickhouse> <clickhouse>
<remote_servers> <remote_servers>
<cluster> <cluster>
<shard> <shard>
""") """
)
for i in range(num_nodes): for i in range(num_nodes):
f.write(""" f.write(
"""
<replica> <replica>
<host>node"""+str(i)+"""</host> <host>node"""
+ str(i)
+ """</host>
<port>9000</port> <port>9000</port>
</replica> </replica>
""") """
f.write(""" )
f.write(
"""
</shard> </shard>
</cluster> </cluster>
</remote_servers> </remote_servers>
</clickhouse> </clickhouse>
""") """
)
return path return path