mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
Fix liveness check for NAS gateway (#7142)
Current master throws '503' unavailable for liveness check ``` ~ curl -v http://localhost:9000/minio/health/live > GET /minio/health/live HTTP/1.1 ... ... < HTTP/1.1 503 Service Unavailable ``` With this fix liveness check returns error appropriately ``` ~ curl -v http://localhost:9000/minio/health/live > GET /minio/health/live HTTP/1.1 ... ... < HTTP/1.1 200 OK ```
This commit is contained in:
parent
8ee8ad777c
commit
964e354d06
@ -17,6 +17,8 @@
|
||||
package nas
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/minio/cli"
|
||||
minio "github.com/minio/minio/cmd"
|
||||
"github.com/minio/minio/pkg/auth"
|
||||
@ -121,6 +123,12 @@ func (n *nasObjects) IsListenBucketSupported() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (n *nasObjects) StorageInfo(ctx context.Context) minio.StorageInfo {
|
||||
sinfo := n.ObjectLayer.StorageInfo(ctx)
|
||||
sinfo.Backend.Type = minio.Unknown
|
||||
return sinfo
|
||||
}
|
||||
|
||||
// nasObjects implements gateway for Minio and S3 compatible object storage servers.
|
||||
type nasObjects struct {
|
||||
minio.ObjectLayer
|
||||
|
Loading…
Reference in New Issue
Block a user