mirror of
https://github.com/containers/podman.git
synced 2025-06-20 00:51:16 +08:00
Add missing return
libpod df handler missing a return after writing error to client. This caused a null to be appended to JSON and crashed python decoder. Signed-off-by: Jhon Honce <jhonce@redhat.com>
This commit is contained in:
@ -72,6 +72,7 @@ func DiskUsage(w http.ResponseWriter, r *http.Request) {
|
||||
response, err := ic.SystemDf(r.Context(), options)
|
||||
if err != nil {
|
||||
utils.InternalServerError(w, err)
|
||||
return
|
||||
}
|
||||
utils.WriteResponse(w, http.StatusOK, response)
|
||||
}
|
||||
|
Reference in New Issue
Block a user