diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-06-24 09:32:39 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-24 09:32:39 -0400 |
commit | c07df63c45710729cc9a04b1bfdfc06cad7eccf7 (patch) | |
tree | 38f72c158bb95b70a69e841c0d1250efa52e20e2 /pkg | |
parent | 179731bb1460f22cbe9b5d755562f598de8035d8 (diff) | |
parent | 3430ca4df00981d0e0674f6b413c7a22af19ba94 (diff) | |
download | podman-c07df63c45710729cc9a04b1bfdfc06cad7eccf7.tar.gz podman-c07df63c45710729cc9a04b1bfdfc06cad7eccf7.tar.bz2 podman-c07df63c45710729cc9a04b1bfdfc06cad7eccf7.zip |
Merge pull request #6741 from maybe-sybr/maybe/apiv2/fix-volume-create-code
APIv2: Return `StatusCreated` from volume creation
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/api/handlers/libpod/volumes.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/libpod/volumes.go b/pkg/api/handlers/libpod/volumes.go index ea035fc4d..4b3b5430b 100644 --- a/pkg/api/handlers/libpod/volumes.go +++ b/pkg/api/handlers/libpod/volumes.go @@ -73,7 +73,7 @@ func CreateVolume(w http.ResponseWriter, r *http.Request) { UID: config.UID, GID: config.GID, } - utils.WriteResponse(w, http.StatusOK, volResponse) + utils.WriteResponse(w, http.StatusCreated, volResponse) } func InspectVolume(w http.ResponseWriter, r *http.Request) { |