Merge pull request #8181 from filecoin-project/fix/really-do-it-for-abort

fix:sealing:really-do-it flag for abort upgrade
This commit is contained in:
Jiaying Wang 2022-02-24 17:50:12 -05:00 committed by GitHub
commit d054340f13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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