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)
with open(path, "w") as f:
f.write("""
f.write(
"""
<clickhouse>
<remote_servers>
<cluster>
<shard>
""")
"""
)
for i in range(num_nodes):
f.write("""
f.write(
"""
<replica>
<host>node"""+str(i)+"""</host>
<host>node"""
+ str(i)
+ """</host>
<port>9000</port>
</replica>
""")
f.write("""
"""
)
f.write(
"""
</shard>
</cluster>
</remote_servers>
</clickhouse>
""")
"""
)
return path