Skip to content

Commit 4ffcfdc

Browse files
committed
fix
1 parent eca7f25 commit 4ffcfdc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

enterprise/coderd/provisionerkeys.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"fmt"
55
"net/http"
66
"slices"
7+
"strings"
78
"time"
89

910
"github.com/coder/coder/v2/coderd/database"
@@ -58,7 +59,7 @@ func (api *API) postProvisionerKey(rw http.ResponseWriter, r *http.Request) {
5859
return
5960
}
6061

61-
if slices.ContainsFunc(codersdk.ReservedProvisionerKeyNames(), func(s string) bool {
62+
if slices.ContainsFunc(codersdk.ReservedProvisionerKeyNames(), func(s string) bool {
6263
return strings.EqualFold(req.Name, s)
6364
}) {
6465
httpapi.Write(ctx, rw, http.StatusBadRequest, codersdk.Response{

0 commit comments

Comments
 (0)