mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
admin: Add ServerInfo API() (#3743)
This commit is contained in:
committed by
Harshavardhana
parent
fb39c7c26b
commit
7f86a21317
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user