]> git.proxmox.com Git - qemu-server.git/commitdiff
config: fix dropping description on parsing special cloud init section
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 16 Nov 2022 10:32:14 +0000 (11:32 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 16 Nov 2022 10:41:34 +0000 (11:41 +0100)
we now always write out a new clouding special section on start (to
be fixed) independent of any cloudinit drive/config configured or
not, and thus always run into that section after a VM started with
the new qemu-server installed, which in turn set the description
always to undef.

Fixes: 95a5135 ("cloudinit: add cloudinit section for current generated config.")
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/QemuServer.pm

index 1607ce27fac44f7b5325f076d0d47580e9e82d24..f82c1e68f0475412fba6fde2bc301338c4b46622 100644 (file)
@@ -2445,7 +2445,7 @@ sub parse_vm_config {
            next;
        } elsif ($line =~ m/^\[special:cloudinit\]\s*$/i) {
            $section = 'cloudinit';
-           $descr = undef;
+           $finish_description->();
            $conf = $res->{$section} = {};
            next;