Skip to content

Commit

Permalink
Revert auth_command.go
Browse files Browse the repository at this point in the history
Signed-off-by: Kamandlou <[email protected]>
  • Loading branch information
Kamandlou committed Sep 21, 2024
1 parent 1e14cf6 commit 968f13a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions etcdctl/ctlv3/command/auth_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
package command

import (
"errors"
"fmt"

"github.com/spf13/cobra"
Expand Down Expand Up @@ -83,7 +82,7 @@ func authEnableCommandFunc(cmd *cobra.Command, args []string) {
if _, err = cli.AuthEnable(ctx); err == nil {
break
}
if errors.Is(err, rpctypes.ErrRootRoleNotExist) {
if err == rpctypes.ErrRootRoleNotExist {
if _, err = cli.RoleAdd(ctx, "root"); err != nil {
break
}
Expand Down

0 comments on commit 968f13a

Please sign in to comment.