Skip to content

Commit

Permalink
[fix] packer ignores pool parameter (#77)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mizhka authored Apr 15, 2022
1 parent 075b733 commit c6ba814
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builder/proxmox/common/step_start_vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c6ba814

Please sign in to comment.