Skip to content

Commit

Permalink
remove setting override duration
Browse files Browse the repository at this point in the history
  • Loading branch information
meyerjrr committed Sep 19, 2024
1 parent 67806f6 commit d701d31
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions pkg/hook/accessrequesthook/accessrequesthook.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,23 +167,6 @@ func (h Hook) NoEntitlementAccess(ctx context.Context, cfg *config.Context, inpu
}
}

for i := range req.Entitlements {

if input.Duration != nil {
req.Entitlements[i].Duration = input.Duration
continue
}

if result.DurationConfiguration != nil {
if result.DurationConfiguration.DefaultDuration != nil {
req.Entitlements[i].Duration = result.DurationConfiguration.DefaultDuration
} else {
req.Entitlements[i].Duration = result.DurationConfiguration.MaxDuration
}
}

}

// the spinner must be started after prompting for reason, otherwise the prompt gets hidden
si := spinner.New(spinner.CharSets[14], 100*time.Millisecond)
si.Suffix = " ensuring access..."
Expand Down

0 comments on commit d701d31

Please sign in to comment.