From 73370570f4774f8ed144550cd66abe590adcd2da Mon Sep 17 00:00:00 2001 From: blz-ea Date: Mon, 26 Oct 2020 10:11:09 -0400 Subject: [PATCH] Fix Proxmox builder unhandled buildvar type (#10154) * Fix Proxmox builder unhandled buildvar type #10139 Co-authored-by: Calle Pettersson Co-authored-by: Adrien Delorme --- builder/proxmox/common/step_start_vm.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/builder/proxmox/common/step_start_vm.go b/builder/proxmox/common/step_start_vm.go index 9b8a2b0f9..0e92334fb 100644 --- a/builder/proxmox/common/step_start_vm.go +++ b/builder/proxmox/common/step_start_vm.go @@ -93,7 +93,9 @@ func (s *stepStartVM) Run(ctx context.Context, state multistep.StateBag) multist state.Put("vmRef", vmRef) // instance_id is the generic term used so that users can have access to the // instance id inside of the provisioners, used in step_provision. - state.Put("instance_id", vmRef) + // Note that this is just the VMID, we do not keep the node, pool and other + // info available in the vmref type. + state.Put("instance_id", vmRef.VmId()) ui.Say("Starting VM") _, err = client.StartVm(vmRef)