3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request from jpotier/jpotier-patch-grafana

Fix typo in assert in grafana module
This commit is contained in:
WilliButz 2019-08-11 14:02:20 +02:00 committed by GitHub
commit aec8469988
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";
}
];