summaryrefslogtreecommitdiff
path: root/libpod/options.go
diff options
context:
space:
mode:
Diffstat (limited to 'libpod/options.go')
-rw-r--r--libpod/options.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/libpod/options.go b/libpod/options.go
index 56e8fa203..6d3091378 100644
--- a/libpod/options.go
+++ b/libpod/options.go
@@ -656,6 +656,7 @@ func WithLogPath(path string) CtrCreateOption {
}
// WithCgroupParent sets the Cgroup Parent of the new container
+// Default used if not overridden on command line
func WithCgroupParent(parent string) CtrCreateOption {
return func(ctr *Container) error {
if ctr.valid {
@@ -663,7 +664,7 @@ func WithCgroupParent(parent string) CtrCreateOption {
}
if parent == "" {
- return errors.Wrapf(ErrInvalidArg, "cgroup parent cannot be empty")
+ return nil
}
ctr.config.CgroupParent = parent