Typo: Fix error messages on service account operations (#4026)
This commit is contained in:
@@ -74,7 +74,7 @@ func mainAdminUserSvcAcctDisable(ctx *cli.Context) error {
|
||||
}
|
||||
|
||||
e := client.UpdateServiceAccount(globalContext, svcAccount, opts)
|
||||
fatalIf(probe.NewError(e).Trace(args...), "Unable to get disable the specified service account")
|
||||
fatalIf(probe.NewError(e).Trace(args...), "Unable to disable the specified service account")
|
||||
|
||||
printMsg(svcAcctMessage{
|
||||
op: "disable",
|
||||
|
||||
@@ -74,7 +74,7 @@ func mainAdminUserSvcAcctEnable(ctx *cli.Context) error {
|
||||
}
|
||||
|
||||
e := client.UpdateServiceAccount(globalContext, svcAccount, opts)
|
||||
fatalIf(probe.NewError(e).Trace(args...), "Unable to get enable the specified service account")
|
||||
fatalIf(probe.NewError(e).Trace(args...), "Unable to enable the specified service account")
|
||||
|
||||
printMsg(svcAcctMessage{
|
||||
op: "enable",
|
||||
|
||||
@@ -74,7 +74,7 @@ func mainAdminUserSvcAcctList(ctx *cli.Context) error {
|
||||
fatalIf(err, "Unable to initialize admin connection.")
|
||||
|
||||
svcList, e := client.ListServiceAccounts(globalContext, user)
|
||||
fatalIf(probe.NewError(e).Trace(args...), "Unable to add a new service account")
|
||||
fatalIf(probe.NewError(e).Trace(args...), "Unable to list service accounts")
|
||||
|
||||
for _, svc := range svcList.Accounts {
|
||||
printMsg(svcAcctMessage{
|
||||
|
||||
@@ -70,7 +70,7 @@ func mainAdminUserSvcAcctRemove(ctx *cli.Context) error {
|
||||
fatalIf(err, "Unable to initialize admin connection.")
|
||||
|
||||
e := client.DeleteServiceAccount(globalContext, svcAccount)
|
||||
fatalIf(probe.NewError(e).Trace(args...), "Unable to remove a new service account")
|
||||
fatalIf(probe.NewError(e).Trace(args...), "Unable to remove the specified service account")
|
||||
|
||||
printMsg(svcAcctMessage{
|
||||
op: "rm",
|
||||
|
||||
@@ -95,7 +95,7 @@ func mainAdminUserSvcAcctSet(ctx *cli.Context) error {
|
||||
}
|
||||
|
||||
e := client.UpdateServiceAccount(globalContext, svcAccount, opts)
|
||||
fatalIf(probe.NewError(e).Trace(args...), "Unable to add a new service account")
|
||||
fatalIf(probe.NewError(e).Trace(args...), "Unable to edit the specified service account")
|
||||
|
||||
printMsg(svcAcctMessage{
|
||||
op: "set",
|
||||
|
||||
Reference in New Issue
Block a user