Skip to content

Commit

Permalink
cluster: remove duplicated tasks when prune (#2435)
Browse files Browse the repository at this point in the history
Signed-off-by: xhe <[email protected]>
  • Loading branch information
xhebox authored Jul 10, 2024
1 parent e543145 commit 6d0814e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/cluster/manager/destroy.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,12 @@ func (m *Manager) DestroyTombstone(
}
topo = metadata.GetTopology()
base = metadata.GetBaseMeta()

b, err = m.sshTaskBuilder(name, topo, base.User, gOpt)
if err != nil {
return err
}

regenConfigTasks, _ := buildInitConfigTasks(m, name, topo, base, gOpt, nodes)
t = b.
ParallelStep("+ Refresh instance configs", gOpt.Force, regenConfigTasks...).
Expand Down

0 comments on commit 6d0814e

Please sign in to comment.