3
0
Fork 0
forked from mirrors/nixpkgs

Fix typo in assert in grafana module

Current assert prevents using secretKeyFile entirely
This commit is contained in:
Jean Potier 2019-08-11 13:21:26 +03:00 committed by GitHub
parent 5f01a2586a
commit 9847967594
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -503,12 +503,12 @@ in {
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";
}
{
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";
}
];