Skip to content

Commit

Permalink
Abort fuzzy search on edit if requested (#2491)
Browse files Browse the repository at this point in the history
Fixes #2490

RELEASE_NOTES=[BUGFIX] Honor fuzzy search abort

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>

Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
  • Loading branch information
dominikschulz authored Dec 26, 2022
1 parent 90c796b commit d2c03f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/action/edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (s *Action) editFindName(ctx context.Context, name string) (string, error)
if err := s.find(ctx, nil, name, cb, false); err != nil {
debug.Log("failed to find secret %s: %s", name, err)

return name, nil
return name, err
}

cont, err := termio.AskForBool(ctx, fmt.Sprintf("Secret does not exist %q. Found possible match in %q. Edit existing entry?", name, newName), true)
Expand Down

0 comments on commit d2c03f5

Please sign in to comment.