config: fix dropping description on parsing special cloud init section

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>
This commit is contained in:
Thomas Lamprecht 2022-11-16 11:32:14 +01:00
parent cbfc9d753f
commit eb9923f9b9

View File

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