Fix typo in assert in grafana module
Current assert prevents using secretKeyFile entirely
This commit is contained in:
parent
5f01a2586a
commit
9847967594
@ -503,12 +503,12 @@ in {
|
|||||||
message = "Cannot set both adminPassword and adminPasswordFile";
|
message = "Cannot set both adminPassword and adminPasswordFile";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
assertion = cfg.security.secretKeyFile != opt.security.secretKeyFile.default -> cfg.security.secretKeyFile == null;
|
assertion = cfg.security.secretKey != opt.security.secretKey.default -> cfg.security.secretKeyFile == null;
|
||||||
message = "Cannot set both secretKey and secretKeyFile";
|
message = "Cannot set both secretKey and secretKeyFile";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
assertion = cfg.smtp.password != opt.smtp.password.default -> cfg.smtp.passwordFile == null;
|
assertion = cfg.smtp.password != opt.smtp.password.default -> cfg.smtp.passwordFile == null;
|
||||||
message = "Cannot set both password and secretKeyFile";
|
message = "Cannot set both password and passwordFile";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user