mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-29 15:24:32 +00:00
fixup delayed cloudinit hotplug
cloudinit generation needs to see the cloudinit drive so we
need to pass a config with it already updated
Fixes: 4b785da1a9
("delay cloudinit generation in hotplug")
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
a540985120
commit
9660e606ee
@ -5136,7 +5136,8 @@ sub vmconfig_hotplug_pending {
|
||||
my ($opt, $drive) = @$cloudinit_opt;
|
||||
my $value = $conf->{pending}->{$opt};
|
||||
eval {
|
||||
PVE::QemuServer::Cloudinit::apply_cloudinit_config($conf, $vmid);
|
||||
my $temp = {%$conf, $opt => $value};
|
||||
PVE::QemuServer::Cloudinit::apply_cloudinit_config($temp, $vmid);
|
||||
vmconfig_update_disk($storecfg, $conf, $hotplug_features->{disk},
|
||||
$vmid, $opt, $value, $arch, $machine_type);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user