mirror of
https://github.com/containers/podman.git
synced 2025-06-27 05:26:50 +08:00
Jira RUN-1106 Volumes handlers updates
* Add tests to verify required fields in responses Signed-off-by: Jhon Honce <jhonce@redhat.com>
This commit is contained in:
@ -223,7 +223,7 @@ func RemoveVolume(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
} else {
|
||||
// Success
|
||||
utils.WriteResponse(w, http.StatusNoContent, "")
|
||||
utils.WriteResponse(w, http.StatusNoContent, nil)
|
||||
}
|
||||
} else {
|
||||
if !query.Force {
|
||||
@ -232,7 +232,7 @@ func RemoveVolume(w http.ResponseWriter, r *http.Request) {
|
||||
// Volume does not exist and `force` is truthy - this emulates what
|
||||
// Docker would do when told to `force` removal of a nonextant
|
||||
// volume
|
||||
utils.WriteResponse(w, http.StatusNoContent, "")
|
||||
utils.WriteResponse(w, http.StatusNoContent, nil)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user