From 8482c6c2e6489020f134d16085e284cf29f59459 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Wed, 4 Mar 2020 13:01:04 +0100 Subject: [PATCH] evaluateLocalVariable: also pass the variable name --- hcl2template/types.packer_config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/hcl2template/types.packer_config.go b/hcl2template/types.packer_config.go index 936e1b67f..5748237b2 100644 --- a/hcl2template/types.packer_config.go +++ b/hcl2template/types.packer_config.go @@ -155,6 +155,7 @@ func (c *PackerConfig) evaluateLocalVariable(local *Local) hcl.Diagnostics { return diags } c.LocalVariables[local.Name] = &Variable{ + Name: local.Name, DefaultValue: value, Type: value.Type(), }