mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Make success status public so it will actually get sent to clients
This commit is contained in:
parent
bad4318b95
commit
6d3af1f8ff
@ -38,7 +38,7 @@ type RESTStorage interface {
|
||||
|
||||
// Status is a return value for calls that don't return other objects
|
||||
type Status struct {
|
||||
success bool
|
||||
Success bool
|
||||
}
|
||||
|
||||
// ApiServer is an HTTPHandler that delegates to RESTStorage objects.
|
||||
@ -195,7 +195,7 @@ func (server *ApiServer) handleREST(parts []string, url *url.URL, req *http.Requ
|
||||
server.error(err, w)
|
||||
return
|
||||
}
|
||||
server.write(200, Status{success: true}, w)
|
||||
server.write(200, Status{Success: true}, w)
|
||||
return
|
||||
case "PUT":
|
||||
if len(parts) != 2 {
|
||||
|
Loading…
Reference in New Issue
Block a user