Skip to content

Commit

Permalink
Merge pull request #927 from Tinyblargon/Rework#925
Browse files Browse the repository at this point in the history
[3.0.1-rc1] Set `cloud-init` regardless of `cloud-init` settings
  • Loading branch information
Tinyblargon authored Feb 3, 2024
2 parents 0c79fdb + 8722402 commit 941deb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxmox/resource_vm_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -2316,7 +2316,7 @@ func initConnInfo(ctx context.Context,

func setCloudInitDisk(d *schema.ResourceData, config *pxapi.ConfigQemu) {
storage := d.Get("cloudinit_cdrom_storage").(string)
if storage != "" && (config.CIpassword != "" || config.CIuser != "" || config.Searchdomain != "" || config.Nameserver != "" || config.Sshkeys != "" || (config.Ipconfig != nil && len(config.Ipconfig) > 0)) {
if storage != "" {
config.Disks.Ide.Disk_3 = &pxapi.QemuIdeStorage{CloudInit: &pxapi.QemuCloudInitDisk{
Format: pxapi.QemuDiskFormat_Raw,
Storage: storage,
Expand Down

0 comments on commit 941deb2

Please sign in to comment.