Compare commits

...

1 Commits

Author SHA1 Message Date
sylviamoss 9aff8ac977 add debug log to help debugging issue 2021-05-18 10:19:49 +02:00
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@ package hcl2template
import ( import (
"fmt" "fmt"
"log"
"sort" "sort"
"strings" "strings"
@ -226,6 +227,7 @@ func (c *PackerConfig) evaluateLocalVariables(locals []*LocalBlock) hcl.Diagnost
var retry, previousL int var retry, previousL int
for len(locals) > 0 { for len(locals) > 0 {
local := locals[0] local := locals[0]
log.Printf("[DEBUG-10981] Eavluating local: %q", local.Name)
moreDiags := c.evaluateLocalVariable(local) moreDiags := c.evaluateLocalVariable(local)
if moreDiags.HasErrors() { if moreDiags.HasErrors() {
if len(locals) == 1 { if len(locals) == 1 {