[PR #42] [MERGED] [fixed] CreateQemuDisksParams fails with cloneQemu if no disk config … #176

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

📋 Pull Request Information

Original PR: https://github.com/Telmate/proxmox-api-go/pull/42
Author: @marcellanz
Created: 7/29/2019
Status: Merged
Merged: 8/5/2019
Merged by: @ggongaware

Base: masterHead: fix/cope_with_no_disk_config_on_cloneQemu


📝 Commits (1)

  • 8bba77c [fixed] CreateQemuDisksParams fails with cloneQemu if no disk config is defined for cloud-init

📊 Changes

1 file changed (+3 additions, -1 deletions)

View changed files

📝 proxmox/config_qemu.go (+3 -1)

📄 Description

…is defined for cloud-init and fails like:

2019/07/30 00:56:10 Looking for template: debian-buster-64g
2019/07/30 00:56:10 Creating node: 
2019/07/30 00:56:10 &{104 vmhost02  }
panic: assignment to entry in nil map

goroutine 1 [running]:
github.com/Telmate/proxmox-api-go/proxmox.ConfigQemu.CreateQemuDisksParams(0xc0000ba940, 0x16, 0xc0000ba960, 0x19, 0x0, 0x0, 0x5e8, 0x0, 0x0, 0x2, ...)
        /Users/lanzm/Documents/git/proxmox-api-go/proxmox/config_qemu.go:642 +0x391
github.com/Telmate/proxmox-api-go/proxmox.ConfigQemu.UpdateConfig(0xc0000ba940, 0x16, 0xc0000ba960, 0x19, 0x0, 0x0, 0x5e8, 0x0, 0x0, 0x2, ...)
        /Users/lanzm/Documents/git/proxmox-api-go/proxmox/config_qemu.go:167 +0x437
github.com/Telmate/proxmox-api-go/proxmox.ConfigQemu.CloneVm(0xc0000ba940, 0x16, 0xc0000ba960, 0x19, 0x0, 0x0, 0x5e8, 0x0, 0x0, 0x2, ...)
        /Users/lanzm/Documents/git/proxmox-api-go/proxmox/config_qemu.go:152 +0x4dd
main.main()
        /Users/lanzm/Documents/git/proxmox-api-go/main.go:153 +0xd7e

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Telmate/proxmox-api-go/pull/42 **Author:** [@marcellanz](https://github.com/marcellanz) **Created:** 7/29/2019 **Status:** ✅ Merged **Merged:** 8/5/2019 **Merged by:** [@ggongaware](https://github.com/ggongaware) **Base:** `master` ← **Head:** `fix/cope_with_no_disk_config_on_cloneQemu` --- ### 📝 Commits (1) - [`8bba77c`](https://github.com/Telmate/proxmox-api-go/commit/8bba77cbc06875a0fadd00754eb94cebf003dc81) [fixed] CreateQemuDisksParams fails with cloneQemu if no disk config is defined for cloud-init ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `proxmox/config_qemu.go` (+3 -1) </details> ### 📄 Description …is defined for cloud-init and fails like: ``` 2019/07/30 00:56:10 Looking for template: debian-buster-64g 2019/07/30 00:56:10 Creating node: 2019/07/30 00:56:10 &{104 vmhost02 } panic: assignment to entry in nil map goroutine 1 [running]: github.com/Telmate/proxmox-api-go/proxmox.ConfigQemu.CreateQemuDisksParams(0xc0000ba940, 0x16, 0xc0000ba960, 0x19, 0x0, 0x0, 0x5e8, 0x0, 0x0, 0x2, ...) /Users/lanzm/Documents/git/proxmox-api-go/proxmox/config_qemu.go:642 +0x391 github.com/Telmate/proxmox-api-go/proxmox.ConfigQemu.UpdateConfig(0xc0000ba940, 0x16, 0xc0000ba960, 0x19, 0x0, 0x0, 0x5e8, 0x0, 0x0, 0x2, ...) /Users/lanzm/Documents/git/proxmox-api-go/proxmox/config_qemu.go:167 +0x437 github.com/Telmate/proxmox-api-go/proxmox.ConfigQemu.CloneVm(0xc0000ba940, 0x16, 0xc0000ba960, 0x19, 0x0, 0x0, 0x5e8, 0x0, 0x0, 0x2, ...) /Users/lanzm/Documents/git/proxmox-api-go/proxmox/config_qemu.go:152 +0x4dd main.main() /Users/lanzm/Documents/git/proxmox-api-go/main.go:153 +0xd7e ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 00:40:59 +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#176
No description provided.