Skip to content

Commit

Permalink
remove unneeded
Browse files Browse the repository at this point in the history
  • Loading branch information
ckluy31 committed Aug 29, 2024
1 parent 86babc0 commit 6ab8e5a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/granted/request/close.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ var closeCommand = cli.Command{
Usage: "Close an active Just-In-Time access to a particular entitlement",
Flags: []cli.Flag{
&cli.StringFlag{Name: "aws-profile", Required: true, Usage: "Close a JIT access for a particular AWS profile"},
&cli.StringFlag{Name: "request-id", Required: false, Usage: "Close a JIT access for a particular access request ID"},
},
Action: func(c *cli.Context) error {
profiles, err := cfaws.LoadProfiles()
Expand All @@ -31,9 +32,6 @@ var closeCommand = cli.Command{

profileName := c.String("aws-profile")

id := c.String("id")
clio.Debugw("found active grant matching the profile, attempting to force close grant", "grant", id)

profile, err := profiles.LoadInitialisedProfile(c.Context, profileName)
if err != nil {
return err
Expand Down

0 comments on commit 6ab8e5a

Please sign in to comment.