generate: container: The correct data type is guaranteed by maybe_or()
Signed-off-by: Enno Tensing <tenno@suij.in>
This commit is contained in:
parent
07bd99d38e
commit
0654f06a71
1 changed files with 0 additions and 16 deletions
|
@ -78,22 +78,6 @@ class Cgroup:
|
|||
namespace = maybe_or(val, "namespace", "")
|
||||
how = maybe_or(val, "how", "")
|
||||
|
||||
if not isinstance(config, list):
|
||||
logger.log_warning("Config key in cgroup Config is invalid!")
|
||||
config = []
|
||||
|
||||
if not isinstance(parent, str):
|
||||
logger.log_warning("Parent key in cgroup Config is invalid!")
|
||||
parent = ""
|
||||
|
||||
if not isinstance(namespace, str):
|
||||
logger.log_warning("Namespace key in cgroup Config is invalid!")
|
||||
namespace = ""
|
||||
|
||||
if not isinstance(how, str):
|
||||
logger.log_warning("How key in cgroup Config is invalid!")
|
||||
how = ""
|
||||
|
||||
if how == "split" and parent != "":
|
||||
logger.log_warning(
|
||||
"Split cgroups can not be combined with a cgroup parent!"
|
||||
|
|
Loading…
Add table
Reference in a new issue