Fix Proxmox builder unhandled buildvar type (#10154)

* Fix Proxmox builder unhandled buildvar type #10139

Co-authored-by: Calle Pettersson <carlpett@users.noreply.github.com>
Co-authored-by: Adrien Delorme <adrien.delorme@icloud.com>
pull/10111/head
blz-ea 6 years ago committed by GitHub
parent 25f4e24772
commit 73370570f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)

Loading…
Cancel
Save