summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-12-05 05:35:02 -0500
committerGitHub <noreply@github.com>2020-12-05 05:35:02 -0500
commit0be4085596bd42b41d2a807ad0057643b6a3062f (patch)
treecafcc0352067d64a28750287910666a54901ec89 /pkg
parent8e83799d5898aacfddabf40fb1512c5168d0b779 (diff)
parent9b11fc00f1b4492ab6d80101436941d88fa5dd01 (diff)
downloadpodman-0be4085596bd42b41d2a807ad0057643b6a3062f.tar.gz
podman-0be4085596bd42b41d2a807ad0057643b6a3062f.tar.bz2
podman-0be4085596bd42b41d2a807ad0057643b6a3062f.zip
Merge pull request #8603 from jwhonce/jira/RUN-1106-volumes
Jira RUN-1106 Volumes handlers updates
Diffstat (limited to 'pkg')
-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)
}
}
}