From c4c88d37681e1f2de51ed1093793a9148a9ad2f5 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Wed, 4 Sep 2019 14:29:45 +0200 Subject: [PATCH] debug template id --- builder/proxmox/step_convert_to_template.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builder/proxmox/step_convert_to_template.go b/builder/proxmox/step_convert_to_template.go index 712badd81..b0fc13b47 100644 --- a/builder/proxmox/step_convert_to_template.go +++ b/builder/proxmox/step_convert_to_template.go @@ -3,6 +3,7 @@ package proxmox import ( "context" "fmt" + "log" "github.com/Telmate/proxmox-api-go/proxmox" "github.com/hashicorp/packer/helper/multistep" @@ -44,7 +45,7 @@ func (s *stepConvertToTemplate) Run(ctx context.Context, state multistep.StateBa ui.Error(err.Error()) return multistep.ActionHalt } - + log.Printf("template_id: %d", vmRef.VmId()) state.Put("template_id", vmRef.VmId()) return multistep.ActionContinue