1
0
mirror of https://github.com/minio/mc.git synced 2025-11-10 13:42:32 +03:00

make sure to pass jobType to GenerateBatchJob() (#4319)

This commit is contained in:
Harshavardhana
2022-10-20 16:26:33 -07:00
committed by GitHub
parent dccbca774a
commit ad254a8fe2

View File

@@ -86,7 +86,9 @@ func mainBatchGenerate(ctx *cli.Context) error {
fatalIf(errInvalidArgument().Trace(jobType), "Unable to generate a job template for the specified job type")
}
out, e := adminClient.GenerateBatchJob(globalContext, madmin.GenerateBatchJobOpts{})
out, e := adminClient.GenerateBatchJob(globalContext, madmin.GenerateBatchJobOpts{
Type: madmin.BatchJobType(jobType),
})
fatalIf(probe.NewError(e), "Unable to generate %s", args.Get(1))
fmt.Println(string(out))