debug template id

This commit is contained in:
Adrien Delorme 2019-09-04 14:29:45 +02:00
parent d113dd12c1
commit c4c88d3768
1 changed files with 2 additions and 1 deletions

View File

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