mirror of
https://github.com/minio/mc.git
synced 2025-11-12 01:02:26 +03:00
make sure to pass jobType to GenerateBatchJob() (#4319)
This commit is contained in:
@@ -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")
|
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))
|
fatalIf(probe.NewError(e), "Unable to generate %s", args.Get(1))
|
||||||
|
|
||||||
fmt.Println(string(out))
|
fmt.Println(string(out))
|
||||||
|
|||||||
Reference in New Issue
Block a user