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:
committed by
Linus Heckemann
parent
d4212d66a8
commit
b08b0bcbbe
@@ -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; })
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user