diff options
Diffstat (limited to 'libpod/options.go')
-rw-r--r-- | libpod/options.go | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/libpod/options.go b/libpod/options.go index 65a8a91d3..d965c058e 100644 --- a/libpod/options.go +++ b/libpod/options.go @@ -137,21 +137,17 @@ func WithStateType(storeType RuntimeStateStore) RuntimeOption { } // WithOCIRuntime specifies an OCI runtime to use for running containers. -func WithOCIRuntime(runtimePath string) RuntimeOption { +func WithOCIRuntime(runtime string) RuntimeOption { return func(rt *Runtime) error { if rt.valid { return ErrRuntimeFinalized } - if runtimePath == "" { + if runtime == "" { return errors.Wrapf(ErrInvalidArg, "must provide a valid path") } - rt.config.OCIRuntimes = []OCIRuntimePath{ - { - Paths: []string{runtimePath}, - }, - } + rt.config.OCIRuntime = runtime return nil } |