mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-07 23:29:09 +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 {
|
sub write_config {
|
||||||
my ($class, $vmid, $conf) = @_;
|
my ($class, $vmid, $conf) = @_;
|
||||||
|
|
||||||
log_warn("refusing to write temporary configuration");
|
die("refusing to write temporary configuration\n");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
Loading…
Reference in New Issue
Block a user