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>
This commit is contained in:
Giuseppe Scrivano 2019-02-21 22:50:32 +01:00
parent 8039ccf4d5
commit 56714d14fd
No known key found for this signature in database
GPG key ID: E4730F97F60286ED

View file

@ -149,6 +149,7 @@ func WithOCIRuntime(runtime string) RuntimeOption {
}
rt.config.OCIRuntime = runtime
rt.config.RuntimePath = nil
return nil
}