From cc0d5b6fe0c148f12a05dad9725edf55c6089843 Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Wed, 3 Aug 2016 22:47:03 +0200 Subject: [PATCH] webapi: ServerInfo returns the list variables/values in the environnment of the Minio server (#2351) --- web-handlers.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web-handlers.go b/web-handlers.go index 87658a200..71b1b22d4 100644 --- a/web-handlers.go +++ b/web-handlers.go @@ -74,6 +74,7 @@ type ServerInfoRep struct { MinioMemory string MinioPlatform string MinioRuntime string + MinioEnvVars []string UIVersion string `json:"uiVersion"` } @@ -98,6 +99,8 @@ func (web *webAPIHandlers) ServerInfo(r *http.Request, args *WebGenericArgs, rep runtime.GOOS, runtime.GOARCH) goruntime := fmt.Sprintf("Version: %s | CPUs: %s", runtime.Version(), strconv.Itoa(runtime.NumCPU())) + + reply.MinioEnvVars = os.Environ() reply.MinioVersion = minioVersion reply.MinioMemory = mem reply.MinioPlatform = platform