Skip to content

Commit

Permalink
fix: use Remove in remove cmd (#48)
Browse files Browse the repository at this point in the history
Signed-off-by: KlausVii <klaus.viisainen@klorp.co.uk>
  • Loading branch information
KlausVii authored Aug 5, 2022
1 parent 80ca7b8 commit 4c9d160
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/cli/remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ import (
"log"
"time"

"github.com/keikoproj/aws-auth/pkg/mapper"
"github.com/spf13/cobra"

"github.com/keikoproj/aws-auth/pkg/mapper"
)

var removeArgs = &mapper.MapperArguments{
Expand All @@ -39,7 +40,7 @@ var removeCmd = &cobra.Command{
}

worker := mapper.New(k, true)
if err := worker.RemoveByUsername(removeArgs); err != nil {
if err := worker.Remove(removeArgs); err != nil {
log.Fatal(err)
}
},
Expand Down

0 comments on commit 4c9d160

Please sign in to comment.