Skip to content

Commit

Permalink
fix: get cluster info failed when import a offline cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
YenchangChan committed Jan 6, 2024
1 parent fa8c9d7 commit 2bd2c73
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions controller/clickhouse.go
Original file line number Diff line number Diff line change
Expand Up @@ -1463,11 +1463,7 @@ func (controller *ClickHouseController) GetClusterStatus(c *gin.Context) {
}

if conf.Mode == model.CkClusterImport {
code, err := clickhouse.GetCkClusterConfig(&conf)
if err != nil {
controller.wrapfunc(c, code, err)
return
}
_, _ = clickhouse.GetCkClusterConfig(&conf)
}
conf.Normalize()
statusList := clickhouse.GetCkClusterStatus(&conf)
Expand Down

0 comments on commit 2bd2c73

Please sign in to comment.