summaryrefslogtreecommitdiff
path: root/libpod/runtime.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-10-20 11:22:43 -0400
committerGitHub <noreply@github.com>2020-10-20 11:22:43 -0400
commit36682115b0f3f5f7cfcc6bc4580e5a7435b9a4d8 (patch)
tree9883d07d47e45ad05b53d1fa626d33b342ba5d5e /libpod/runtime.go
parent6c0b600e7d49d17db6eedd21b755b5d4f1a15b11 (diff)
parent1b4933376f4e6738ff3a0c42a2e27c6d21c07e7c (diff)
downloadpodman-36682115b0f3f5f7cfcc6bc4580e5a7435b9a4d8.tar.gz
podman-36682115b0f3f5f7cfcc6bc4580e5a7435b9a4d8.tar.bz2
podman-36682115b0f3f5f7cfcc6bc4580e5a7435b9a4d8.zip
Merge pull request #7126 from mheon/fix_missing_ociruntime
Fix missing OCI Runtime
Diffstat (limited to 'libpod/runtime.go')
-rw-r--r--libpod/runtime.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/libpod/runtime.go b/libpod/runtime.go
index ccd920ab0..792492db6 100644
--- a/libpod/runtime.go
+++ b/libpod/runtime.go
@@ -396,14 +396,12 @@ func makeRuntime(ctx context.Context, runtime *Runtime) (retErr error) {
// If the string starts with / it's a path to a runtime
// executable.
if strings.HasPrefix(runtime.config.Engine.OCIRuntime, "/") {
- name := filepath.Base(runtime.config.Engine.OCIRuntime)
-
- ociRuntime, err := newConmonOCIRuntime(name, []string{runtime.config.Engine.OCIRuntime}, runtime.conmonPath, runtime.runtimeFlags, runtime.config)
+ ociRuntime, err := newConmonOCIRuntime(runtime.config.Engine.OCIRuntime, []string{runtime.config.Engine.OCIRuntime}, runtime.conmonPath, runtime.runtimeFlags, runtime.config)
if err != nil {
return err
}
- runtime.ociRuntimes[name] = ociRuntime
+ runtime.ociRuntimes[runtime.config.Engine.OCIRuntime] = ociRuntime
runtime.defaultOCIRuntime = ociRuntime
} else {
ociRuntime, ok := runtime.ociRuntimes[runtime.config.Engine.OCIRuntime]