From c9f2c4b9149d038b6294011e5e7351e9c8b1ba87 Mon Sep 17 00:00:00 2001 From: JaySon-Huang Date: Wed, 23 Feb 2022 16:12:13 +0800 Subject: [PATCH] Fix missing "tmp_path" in tiflash configuration make cluster_manager can not start --- cluster_manage/flash_tools.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cluster_manage/flash_tools.py b/cluster_manage/flash_tools.py index 5854a53365d..efcf34cbb6e 100644 --- a/cluster_manage/flash_tools.py +++ b/cluster_manage/flash_tools.py @@ -14,7 +14,6 @@ def __init__(self, file_path): self.http_port = self.conf_toml['http_port'] else: self.http_port = self.conf_toml['https_port'] - tmp_path = self.conf_toml['tmp_path'] p = self.conf_toml['flash'] service_addr = p['service_addr'] @@ -32,7 +31,7 @@ def __init__(self, file_path): self.cluster_refresh_interval = min( int(flash_cluster.get('refresh_interval', 20)), self.cluster_master_ttl) self.update_rule_interval = int(flash_cluster.get('update_rule_interval', 10)) - self.log_path = flash_cluster.get('log', '{}/flash_cluster_manager.log'.format(tmp_path)) + self.log_path = flash_cluster.get('log', '{}/flash_cluster_manager.log'.format(self.conf_toml.get('tmp_path', '/tmp'))) self.max_time_out = self.cluster_master_ttl self.enable_tls = False