From ebb1cb406c7fe3837d58ab70c2d6bb8218aca05a Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Fri, 2 Oct 2020 10:53:17 +0200 Subject: [PATCH] ignore walk error --- hcl2template/parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hcl2template/parser.go b/hcl2template/parser.go index a22008147..b1d777e7d 100644 --- a/hcl2template/parser.go +++ b/hcl2template/parser.go @@ -186,7 +186,7 @@ func (cfg *PackerConfig) Initialize() hcl.Diagnostics { if !value.IsWhollyKnown() && value.IsNull() && !value.Type().Equals(cty.String) { continue } - cty.Walk(value, func(_ cty.Path, nested cty.Value) (bool, error) { + _ = cty.Walk(value, func(_ cty.Path, nested cty.Value) (bool, error) { if nested.IsWhollyKnown() && !nested.IsNull() && nested.Type().Equals(cty.String) { packer.LogSecretFilter.Set(nested.AsString()) }