mkRemovedOptionModule: assert on removed options

We don't want to ignore config that can mess up machines. In general
this should always fail evaluation, as you think you are changing
behaviour and don't, which can easily create run-time errors we can
catch early.
This commit is contained in:
Robin Gloster
2019-09-25 17:13:29 +02:00
committed by Linus Heckemann
parent d4212d66a8
commit b08b0bcbbe
3 changed files with 9 additions and 6 deletions

View File

@@ -49,6 +49,6 @@ in
(mkRemovedOptionModule [ "insecure" ] ''
This option was replaced by 'prometheus.exporters.nginx.sslVerify'.
'')
({ options.warnings = options.warnings; })
({ options.warnings = options.warnings; options.assertions = options.assertions; })
];
}