add rdi flag for abort upgrade

This commit is contained in:
zenground0 2022-02-24 15:20:21 -07:00
parent b8cd154516
commit 367146f032

View File

@ -1540,6 +1540,12 @@ var sectorsSnapAbortCmd = &cli.Command{
return lcli.ShowHelp(cctx, xerrors.Errorf("must pass sector number"))
}
really := cctx.Bool("really-do-it")
if !really {
//nolint:golint
return fmt.Errorf("--really-do-it must be specified for this action to have an effect; you have been warned")
}
nodeApi, closer, err := lcli.GetStorageMinerAPI(cctx)
if err != nil {
return err