Skip to content

Commit

Permalink
Bugfix: cleanup wrong conf files
Browse files Browse the repository at this point in the history
Fix pingcap#736

Signed-off-by: lucklove <[email protected]>
  • Loading branch information
lucklove committed Sep 1, 2020
1 parent 3988f6f commit 70402ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cluster/spec/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func (i *MonitorInstance) InitConfig(e executor.Executor, clusterName, clusterVe

func (i *MonitorInstance) initRules(e executor.Executor, spec PrometheusSpec, paths meta.DirPaths) error {
// To make this step idempotent, we need cleanup old rules first
if _, _, err := e.Execute(fmt.Sprintf("rm -f %s/*", path.Join(paths.Deploy, "conf")), false); err != nil {
if _, _, err := e.Execute(fmt.Sprintf("rm -f %s/*.rules.yml", path.Join(paths.Deploy, "conf")), false); err != nil {
return err
}

Expand Down

0 comments on commit 70402ba

Please sign in to comment.