summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2019-02-21 22:50:32 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2019-02-22 21:11:03 +0100
commit56714d14fdd792096b25de80df239016c5b65d47 (patch)
tree0d11bd1e73ea88cd09369091904fb7749f4cadad
parent8039ccf4d560acbc308066cf8996bc4e6167a4a9 (diff)
downloadpodman-56714d14fdd792096b25de80df239016c5b65d47.tar.gz
podman-56714d14fdd792096b25de80df239016c5b65d47.tar.bz2
podman-56714d14fdd792096b25de80df239016c5b65d47.zip
podman: --runtime has higher priority on runtime_path
if --runtime is specified, then it has higher priority on the runtime_path option, which was added for backward compatibility. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
-rw-r--r--libpod/options.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/options.go b/libpod/options.go
index 7c37fd65b..9aa020b56 100644
--- a/libpod/options.go
+++ b/libpod/options.go
@@ -149,6 +149,7 @@ func WithOCIRuntime(runtime string) RuntimeOption {
}
rt.config.OCIRuntime = runtime
+ rt.config.RuntimePath = nil
return nil
}