Added the method to create a bucket when creating a new service account on minio
This commit is contained in:
parent
53043e7781
commit
39137c4f2a
@ -64,6 +64,14 @@ func (m *MinioController) CreateServiceAccount() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
err = service.CreateBucket(executionsId)
|
||||||
|
if err != nil {
|
||||||
|
m.Ctx.Output.SetStatus(500)
|
||||||
|
m.Data["json"] = map[string]interface{}{"error":"could not create the service account for " + minioId + " : " + err.Error()}
|
||||||
|
m.ServeJSON()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// test if the namespace exists
|
// test if the namespace exists
|
||||||
k, err := infrastructure.NewService()
|
k, err := infrastructure.NewService()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user