From c6ba814729447829879a96ac643852493debe744 Mon Sep 17 00:00:00 2001 From: Michael Zhilin Date: Fri, 15 Apr 2022 17:52:10 +0300 Subject: [PATCH] [fix] packer ignores pool parameter (#77) The plugin ignores "pool" parameter due to incorrect copying of parameter value into ConfigQemu. For example, in case of clone-vm for pooled template it results into excluding of VM from pool. This patch set "pool" parameter of ConfigQemu if parameter is not empty. --- builder/proxmox/common/step_start_vm.go | 1 + 1 file changed, 1 insertion(+) diff --git a/builder/proxmox/common/step_start_vm.go b/builder/proxmox/common/step_start_vm.go index 416342d2..31f0fbaf 100644 --- a/builder/proxmox/common/step_start_vm.go +++ b/builder/proxmox/common/step_start_vm.go @@ -87,6 +87,7 @@ func (s *stepStartVM) Run(ctx context.Context, state multistep.StateBag) multist vmRef.SetNode(c.Node) if c.Pool != "" { vmRef.SetPool(c.Pool) + config.Pool = c.Pool } err := s.vmCreator.Create(vmRef, config, state)