Skip to content

Commit 87c55c3

Browse files
authored
fix path param read (#10089)
1 parent 15ea484 commit 87c55c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/api/pkg/handler/apihandler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2905,7 +2905,7 @@ func (apiHandle *APIHandler) handleStatefulSetRestart(request *restful.Request,
29052905
}
29062906

29072907
namespace := request.PathParameter("namespace")
2908-
name := request.PathParameter("daemonSet")
2908+
name := request.PathParameter("statefulset")
29092909
result, err := statefulset.RestartStatefulSet(k8sClient, namespace, name)
29102910
if err != nil {
29112911
errors.HandleInternalError(response, err)

0 commit comments

Comments
 (0)