mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-04 02:29:57 +00:00
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:
parent
275a6f477c
commit
92d2ffdd9b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user