summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/compat
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2020-12-04 14:21:27 -0700
committerJhon Honce <jhonce@redhat.com>2020-12-04 16:27:42 -0700
commit9b11fc00f1b4492ab6d80101436941d88fa5dd01 (patch)
treecafcc0352067d64a28750287910666a54901ec89 /pkg/api/handlers/compat
parent8e83799d5898aacfddabf40fb1512c5168d0b779 (diff)
downloadpodman-9b11fc00f1b4492ab6d80101436941d88fa5dd01.tar.gz
podman-9b11fc00f1b4492ab6d80101436941d88fa5dd01.tar.bz2
podman-9b11fc00f1b4492ab6d80101436941d88fa5dd01.zip
Jira RUN-1106 Volumes handlers updates
* Add tests to verify required fields in responses Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'pkg/api/handlers/compat')
-rw-r--r--pkg/api/handlers/compat/volumes.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/api/handlers/compat/volumes.go b/pkg/api/handlers/compat/volumes.go
index a3c9fbd2f..71b848932 100644
--- a/pkg/api/handlers/compat/volumes.go
+++ b/pkg/api/handlers/compat/volumes.go
@@ -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)
}
}
}