aboutsummaryrefslogtreecommitdiff
path: root/libpod/runtime.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-27 15:20:50 +0200
committerGitHub <noreply@github.com>2020-04-27 15:20:50 +0200
commitca15a83fe0db5e5af917149d7b7cb770474edab1 (patch)
tree529e4262203d7162fee90b7653cec8b160fcb64a /libpod/runtime.go
parente4b4eaae10d62a3043ac0120123a57bd2c14763e (diff)
parentf44f830e9f3ac40b1aa28d4bd64eeebf3aca6237 (diff)
downloadpodman-ca15a83fe0db5e5af917149d7b7cb770474edab1.tar.gz
podman-ca15a83fe0db5e5af917149d7b7cb770474edab1.tar.bz2
podman-ca15a83fe0db5e5af917149d7b7cb770474edab1.zip
Merge pull request #5953 from rhatdan/v1.9
Don't check configuration until user input is applied
Diffstat (limited to 'libpod/runtime.go')
-rw-r--r--libpod/runtime.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/libpod/runtime.go b/libpod/runtime.go
index a6032ad23..d5e2c51d8 100644
--- a/libpod/runtime.go
+++ b/libpod/runtime.go
@@ -131,8 +131,9 @@ func NewRuntime(ctx context.Context, options ...RuntimeOption) (runtime *Runtime
if err != nil {
return nil, err
}
+ runtime, err = newRuntimeFromConfig(ctx, conf, options...)
conf.CheckCgroupsAndAdjustConfig()
- return newRuntimeFromConfig(ctx, conf, options...)
+ return runtime, err
}
// NewRuntimeFromConfig creates a new container runtime using the given