Fix display message when list and remove notifications are called (#2424)
This commit is contained in:
+1
-1
@@ -122,7 +122,7 @@ func mainEventsList(ctx *cli.Context) error {
|
||||
}
|
||||
|
||||
configs, err := s3Client.ListNotificationConfigs(arn)
|
||||
fatalIf(err, "Cannot enable notification on the specified bucket.")
|
||||
fatalIf(err, "Cannot list notifications on the specified bucket.")
|
||||
|
||||
for _, config := range configs {
|
||||
printMsg(eventsListMessage{Events: config.Events,
|
||||
|
||||
@@ -113,7 +113,7 @@ func mainEventsRemove(ctx *cli.Context) error {
|
||||
}
|
||||
|
||||
err = s3Client.RemoveNotificationConfig(arn)
|
||||
fatalIf(err, "Cannot enable notification on the specified bucket.")
|
||||
fatalIf(err, "Cannot disable notification on the specified bucket.")
|
||||
printMsg(eventsRemoveMessage{ARN: arn})
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user