From 869c875967644d1377a2d0cda5967e00a0a819f3 Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Sat, 12 Mar 2022 00:09:46 +0100 Subject: [PATCH] svcacct: Show successful message after deletion (#4016) Fix some typo that prevented the command to print a success message when a service account is deleted. --- cmd/admin-user-svcacct-rm.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/admin-user-svcacct-rm.go b/cmd/admin-user-svcacct-rm.go index a4ce1a07..fc9f4e16 100644 --- a/cmd/admin-user-svcacct-rm.go +++ b/cmd/admin-user-svcacct-rm.go @@ -18,8 +18,10 @@ package cmd import ( + "github.com/fatih/color" "github.com/minio/cli" "github.com/minio/mc/pkg/probe" + "github.com/minio/pkg/console" ) var adminUserSvcAcctRemoveCmd = cli.Command{ @@ -54,6 +56,8 @@ func checkAdminUserSvcAcctRemoveSyntax(ctx *cli.Context) { // mainAdminUserSvcAcctRemove is the handle for "mc admin user svcacct rm" command. func mainAdminUserSvcAcctRemove(ctx *cli.Context) error { + console.SetColor("SVCMessage", color.New(color.FgGreen)) + checkAdminUserSvcAcctRemoveSyntax(ctx) // Get the alias parameter from cli @@ -69,7 +73,7 @@ func mainAdminUserSvcAcctRemove(ctx *cli.Context) error { fatalIf(probe.NewError(e).Trace(args...), "Unable to remove a new service account") printMsg(svcAcctMessage{ - op: "ls", + op: "rm", AccessKey: svcAccount, })