Skip to content

Commit a261edf

Browse files
committed
remove the start ask after factory reset
Signed-off-by: Ye Sijun <[email protected]>
1 parent 76748dd commit a261edf

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

cmd/limactl/factory-reset.go

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import (
66
"path/filepath"
77
"strings"
88

9-
networks "github.com/lima-vm/lima/pkg/networks/reconcile"
10-
"github.com/lima-vm/lima/pkg/start"
119
"github.com/lima-vm/lima/pkg/store"
1210
"github.com/sirupsen/logrus"
1311
"github.com/spf13/cobra"
@@ -55,20 +53,7 @@ func factoryResetAction(cmd *cobra.Command, args []string) error {
5553
}
5654
}
5755
logrus.Infof("Instance %q has been factory reset", instName)
58-
59-
startNow, err := askWhetherToStart()
60-
if err != nil {
61-
return err
62-
}
63-
if !startNow {
64-
return nil
65-
}
66-
ctx := cmd.Context()
67-
err = networks.Reconcile(ctx, inst.Name)
68-
if err != nil {
69-
return err
70-
}
71-
return start.Start(ctx, inst)
56+
return nil
7257
}
7358

7459
func factoryResetBashComplete(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {

0 commit comments

Comments
 (0)