[GH-ISSUE #147] Disk format parameter is ignored #29

Closed
opened 2026-02-28 00:40:15 +03:00 by kerem · 0 comments
Owner

Originally created by @pupaxxo on GitHub (Nov 22, 2021).
Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/147

In config_qemu format disk parameter is ignored and not sent:

https://github.com/Telmate/proxmox-api-go/blob/master/proxmox/config_qemu.go#L1088



	// Keys that are not used as real/direct conf.
	ignoredKeys := []string{"key", "slot", "type", "storage", "file", "size", "cache", "volume", "container", "vm", "mountoptions", "storage_type", "format"}

	// Rest of config.
	diskConfParam = diskConfParam.createDeviceParam(disk, ignoredKeys)


I'm using packer to create vms and disks are created only in raw format.

Why is it ignored? Is it a bug/typo?

Originally created by @pupaxxo on GitHub (Nov 22, 2021). Original GitHub issue: https://github.com/Telmate/proxmox-api-go/issues/147 In `config_qemu` format disk parameter is ignored and not sent: https://github.com/Telmate/proxmox-api-go/blob/master/proxmox/config_qemu.go#L1088 ```golang // Keys that are not used as real/direct conf. ignoredKeys := []string{"key", "slot", "type", "storage", "file", "size", "cache", "volume", "container", "vm", "mountoptions", "storage_type", "format"} // Rest of config. diskConfParam = diskConfParam.createDeviceParam(disk, ignoredKeys) ``` I'm using packer to create vms and disks are created only in raw format. Why is it ignored? Is it a bug/typo?
kerem closed this issue 2026-02-28 00:40:15 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmox-api-go#29
No description provided.