Fix definiton of probe.exec

types.submodule defaults to assuming the contents are a config. When using liveness_probe.exec.command you get an error due to the exec submodule not being defined correctly.
This commit is contained in:
Ben Levy 2023-06-16 11:56:19 -05:00 committed by Sridhar Ratnakumar
parent ef453a6ce5
commit 5841c100ec

View File

@ -37,7 +37,7 @@ in
};
exec = mkOption {
type = types.nullOr (types.submodule {
command = mkOption {
options.command = mkOption {
type = types.str;
example = "ps -ef | grep -v grep | grep my-proccess";
};