Telmate / proxmox-api-go

Consume the proxmox API in golang
MIT License
370 stars 234 forks source link

Bug: `cloud-init` can't be created #299

Closed Tinyblargon closed 8 months ago

Tinyblargon commented 8 months ago

When the cloud-init disk already exists the disk id can't be changed. This is because we are adding a new cloud-init disk in the same API call that removes to old one. To fix this a disk delete step should be added in this block: https://github.com/Telmate/proxmox-api-go/blob/cd419d1e45db3a4aa25ca0a20bbe26d9b0428aad/proxmox/config_qemu.go#L857-L878

This is related to: https://github.com/Telmate/terraform-provider-proxmox/issues/901