Return deploymentID in ServerInfo REST call (#7422)

Makes deploymentID information uniform in distributed setup
master
Krishnan Parthasarathi 6 years ago committed by kannappanr
parent 719d21efd8
commit aac9e2a7dd
  1. 11
      cmd/peer-rest-server.go

@ -52,11 +52,12 @@ func getServerInfo() (*ServerInfoData, error) {
ConnStats: globalConnStats.toServerConnStats(),
HTTPStats: globalHTTPStats.toServerHTTPStats(),
Properties: ServerProperties{
Uptime: UTCNow().Sub(globalBootTime),
Version: Version,
CommitID: CommitID,
SQSARN: globalNotificationSys.GetARNList(),
Region: globalServerConfig.GetRegion(),
Uptime: UTCNow().Sub(globalBootTime),
Version: Version,
CommitID: CommitID,
DeploymentID: globalDeploymentID,
SQSARN: globalNotificationSys.GetARNList(),
Region: globalServerConfig.GetRegion(),
},
}, nil
}

Loading…
Cancel
Save