add rdi flag for abort upgrade

This commit is contained in:
zenground0 2022-02-24 15:20:21 -07:00 committed by Jennifer Wang
parent e5de237990
commit 6862015929

View File

@ -1530,6 +1530,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