Merge branch 'master' of github.com:hashicorp/vault
This commit is contained in:
commit
c50dfb0356
|
@ -120,7 +120,7 @@ func handleSysGenerateRootUpdate(core *vault.Core) http.Handler {
|
||||||
if req.Key == "" {
|
if req.Key == "" {
|
||||||
respondError(
|
respondError(
|
||||||
w, http.StatusBadRequest,
|
w, http.StatusBadRequest,
|
||||||
errors.New("'key' must specified in request body as JSON"))
|
errors.New("'key' must be specified in request body as JSON"))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -168,7 +168,7 @@ func handleSysRekeyUpdate(core *vault.Core, recovery bool) http.Handler {
|
||||||
if req.Key == "" {
|
if req.Key == "" {
|
||||||
respondError(
|
respondError(
|
||||||
w, http.StatusBadRequest,
|
w, http.StatusBadRequest,
|
||||||
errors.New("'key' must specified in request body as JSON"))
|
errors.New("'key' must be specified in request body as JSON"))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -88,7 +88,7 @@ func handleSysUnseal(core *vault.Core) http.Handler {
|
||||||
if !req.Reset && req.Key == "" {
|
if !req.Reset && req.Key == "" {
|
||||||
respondError(
|
respondError(
|
||||||
w, http.StatusBadRequest,
|
w, http.StatusBadRequest,
|
||||||
errors.New("'key' must specified in request body as JSON, or 'reset' set to true"))
|
errors.New("'key' must be specified in request body as JSON, or 'reset' set to true"))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue