mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-06 15:33:19 +00:00
don't call 'cleanup_config' the cloudinit section
It performs schema valdiation (and normalization). We only ever write values into it which came from an already validated config, and we also add an additional "added" key which is not covered by the schema, so this would fail. Simply skip it. Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
f16cf6c37d
commit
d29483147d
@ -2573,8 +2573,6 @@ sub write_vm_config {
|
||||
|
||||
&$cleanup_config($conf->{pending}, 1);
|
||||
|
||||
&$cleanup_config($conf->{cloudinit});
|
||||
|
||||
foreach my $snapname (keys %{$conf->{snapshots}}) {
|
||||
die "internal error: snapshot name '$snapname' is forbidden" if lc($snapname) eq 'pending';
|
||||
&$cleanup_config($conf->{snapshots}->{$snapname}, undef, $snapname);
|
||||
|
Loading…
Reference in New Issue
Block a user