Skip to content

Commit

Permalink
Remove unnecessary configurerotationjob call
Browse files Browse the repository at this point in the history
  • Loading branch information
robmonte committed Jan 30, 2025
1 parent 734a67f commit 6569ebb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions plugin/path_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,6 @@ func (b *backend) pathConfigWrite(ctx context.Context, req *logical.Request, dat
RotationPeriod: cfg.RotationPeriod,
}

_, err := rotation.ConfigureRotationJob(cfgReq)
if err != nil {
return logical.ErrorResponse("error configuring rotation job: %s", err), nil
}

b.Logger().Debug("Registering rotation job", "mount", req.MountPoint+req.Path)
_, err = b.System().RegisterRotationJob(ctx, cfgReq)
if err != nil {
Expand Down

0 comments on commit 6569ebb

Please sign in to comment.