mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-10-04 17:30:20 +00:00
write config: only write out special cloudinit config if the vm has it
this is only for the current in use CI stuff, not the actual cloud init config itself. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
71cc2c4177
commit
1e1d6f589c
@ -2609,7 +2609,7 @@ sub write_vm_config {
|
||||
$raw .= &$generate_raw_config($conf->{pending}, 1);
|
||||
}
|
||||
|
||||
if (scalar(keys %{$conf->{cloudinit}})){
|
||||
if (scalar(keys %{$conf->{cloudinit}}) && PVE::QemuConfig->has_cloudinit($conf)){
|
||||
$raw .= "\n[special:cloudinit]\n";
|
||||
$raw .= &$generate_raw_config($conf->{cloudinit});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user