config: make attempts at writing out NoWrite configs fatal

attempting to write such a config is already a bug, and execution should not
continue in this case. very often a write of the config will be followed by
reloading it, expecting changes to be persisted and possibly missing
re-checking of the original reason for marking the config as NoWrite.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Reviewed-by: Fiona Ebner <f.ebner@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2025-02-18 13:58:12 +01:00
parent 275a6f477c
commit 92d2ffdd9b

View File

@ -16,8 +16,7 @@ sub mark_config {
sub write_config {
my ($class, $vmid, $conf) = @_;
log_warn("refusing to write temporary configuration");
return;
die("refusing to write temporary configuration\n");
}
1;