Unverified Commit 948295e8 authored by Hussein Galal's avatar Hussein Galal Committed by GitHub

Fix cluster restoration in rke2 (#3295)

parent fc037e87
...@@ -62,9 +62,7 @@ func (c *Cluster) start(ctx context.Context) error { ...@@ -62,9 +62,7 @@ func (c *Cluster) start(ctx context.Context) error {
rebootstrap := func() error { rebootstrap := func() error {
return c.storageBootstrap(ctx) return c.storageBootstrap(ctx)
} }
if err := c.managedDB.Reset(ctx, rebootstrap); err != nil { return c.managedDB.Reset(ctx, rebootstrap)
return err
}
case c.config.ClusterReset: case c.config.ClusterReset:
if _, err := os.Stat(resetFile); err != nil { if _, err := os.Stat(resetFile); err != nil {
if !os.IsNotExist(err) { if !os.IsNotExist(err) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment