]> git.proxmox.com Git - qemu-server.git/commitdiff
don't call 'cleanup_config' the cloudinit section
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 16 Nov 2022 17:14:07 +0000 (18:14 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 16 Nov 2022 17:17:07 +0000 (18:17 +0100)
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>
PVE/QemuServer.pm

index 6053d6c0ccc616f0a628663db1039996ee6f27cf..90cedeaa8389d8b0d529fe5233ba7c4f58fd523c 100644 (file)
@@ -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);