Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Commit

Permalink
fix a copy paste mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
nikals99 committed Sep 14, 2021
1 parent d9df20e commit f818696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (controller *Controller) HandleMutate(w http.ResponseWriter, r *http.Reques

name, err := jsonparser.GetString(body, "request", "object", "metadata", "name")
if err != nil {
namespace = "name"
name = "unknown"
controller.Sugar.Warnf("Error retrieving name")
return
}
Expand Down

0 comments on commit f818696

Please sign in to comment.