summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/compat/containers_create.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-02-17 07:34:32 -0500
committerGitHub <noreply@github.com>2021-02-17 07:34:32 -0500
commitd55d80a04105968574c1a1d0e0589806b95c044c (patch)
treeef33ddde8d9e19455e7712f473983d169f914ffd /pkg/api/handlers/compat/containers_create.go
parent50042120e947fc7aee601f0c65ea485daf604ee1 (diff)
parent68a8d397cec73e956abc71da692bf89d5ff58a86 (diff)
downloadpodman-d55d80a04105968574c1a1d0e0589806b95c044c.tar.gz
podman-d55d80a04105968574c1a1d0e0589806b95c044c.tar.bz2
podman-d55d80a04105968574c1a1d0e0589806b95c044c.zip
Merge pull request #9360 from riyad/add-missing-early-returns
Add missing early returns in compat API
Diffstat (limited to 'pkg/api/handlers/compat/containers_create.go')
-rw-r--r--pkg/api/handlers/compat/containers_create.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/api/handlers/compat/containers_create.go b/pkg/api/handlers/compat/containers_create.go
index 6e85872b2..4a39e9563 100644
--- a/pkg/api/handlers/compat/containers_create.go
+++ b/pkg/api/handlers/compat/containers_create.go
@@ -47,6 +47,7 @@ func CreateContainer(w http.ResponseWriter, r *http.Request) {
rtc, err := runtime.GetConfig()
if err != nil {
utils.Error(w, "unable to obtain runtime config", http.StatusInternalServerError, errors.Wrap(err, "unable to get runtime config"))
+ return
}
newImage, err := runtime.ImageRuntime().NewFromLocal(body.Config.Image)