Replace MongoClient with MinioClient (was typo)
Use bucket_name instead of bucket in handleV1Health
This commit is contained in:
parent
28cc97dcee
commit
a3287768ad
2 changed files with 7 additions and 8 deletions
|
@ -148,13 +148,12 @@ func handleV1Health(c echo.Context) error {
|
|||
|
||||
message := make(map[string]interface{}, len(documents_buckets))
|
||||
|
||||
for _, bucket := range documents_buckets {
|
||||
|
||||
exists, err := client.BucketExists(bucket)
|
||||
for _, bucket_name := range documents_buckets {
|
||||
exists, err := client.BucketExists(bucket_name)
|
||||
if err != nil {
|
||||
return c.JSON(http.StatusInternalServerError, err)
|
||||
}
|
||||
message[bucket] = exists
|
||||
message[bucket_name] = exists
|
||||
}
|
||||
|
||||
return c.JSON(http.StatusOK, message)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue