admin: Add ServerInfo API() (#3743)

This commit is contained in:
Anis Elleuch
2017-02-15 19:45:45 +01:00
committed by Harshavardhana
parent fb39c7c26b
commit 7f86a21317
6 changed files with 235 additions and 47 deletions

View File

@@ -101,10 +101,12 @@ func printEventNotifiers() {
return
}
arnMsg := colorBlue("SQS ARNs: ")
if len(globalEventNotifier.external.targets) == 0 {
// Get all configured external notification targets
externalTargets := globalEventNotifier.GetAllExternalTargets()
if len(externalTargets) == 0 {
arnMsg += colorBold(fmt.Sprintf(getFormatStr(len("<none>"), 1), "<none>"))
}
for queueArn := range globalEventNotifier.external.targets {
for queueArn := range externalTargets {
arnMsg += colorBold(fmt.Sprintf(getFormatStr(len(queueArn), 1), queueArn))
}
console.Println(arnMsg)