Skip to content

Commit

Permalink
Fix logger in fetchkeys command
Browse files Browse the repository at this point in the history
  • Loading branch information
uvegla committed Feb 7, 2025
1 parent 0b853fb commit da59918
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cmd/fetchkeys/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,10 @@ func (r *runner) Run(cmd *cobra.Command, args []string) error {
}

func (r *runner) run(ctx context.Context, cmd *cobra.Command, args []string) error {
logger, err := logr.FromContext(ctx)
if err != nil {
return err
}

cfg := sopsenv.SOPSEnvConfig{
KeysDir: r.flag.SOPSKeysDir,
KeysSource: key.KeysSourceKubernetes,
Logger: logger,
Logger: r.logger,
}

sopsEnv, err := sopsenv.NewSOPSEnv(cfg)
Expand Down

0 comments on commit da59918

Please sign in to comment.