From 3c0ddf9b3ad9b66eb0d2d1ab7f5a8aba57086416 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Wed, 2 Mar 2022 11:48:06 +0100 Subject: [PATCH] Variable.decodeVariable ->Variable.decodeVariableSetting --- hcl2template/types.packer_config.go | 2 +- hcl2template/types.variables.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hcl2template/types.packer_config.go b/hcl2template/types.packer_config.go index ec1a215fe..7016cf6a6 100644 --- a/hcl2template/types.packer_config.go +++ b/hcl2template/types.packer_config.go @@ -169,7 +169,7 @@ func (c *PackerConfig) decodeInputVariables(f *hcl.File) hcl.Diagnostics { attrs, moreDiags := block.Body.JustAttributes() diags = append(diags, moreDiags...) for key, attr := range attrs { - moreDiags = c.InputVariables.decodeVariable(key, attr, ectx) + moreDiags = c.InputVariables.decodeVariablesSetting(key, attr, ectx) diags = append(diags, moreDiags...) } } diff --git a/hcl2template/types.variables.go b/hcl2template/types.variables.go index e5bfad8f1..b55d7db70 100644 --- a/hcl2template/types.variables.go +++ b/hcl2template/types.variables.go @@ -217,8 +217,8 @@ func (variables Variables) ValidateValues() hcl.Diagnostics { return diags } -// decodeVariable decodes a variable key and value into Variables -func (variables *Variables) decodeVariable(key string, attr *hcl.Attribute, ectx *hcl.EvalContext) hcl.Diagnostics { +// decodeVariablesSetting decodes a variable key and value into Variables +func (variables *Variables) decodeVariablesSetting(key string, attr *hcl.Attribute, ectx *hcl.EvalContext) hcl.Diagnostics { var diags hcl.Diagnostics if (*variables) == nil {