evaluateLocalVariable: also pass the variable name

This commit is contained in:
Adrien Delorme 2020-03-04 13:01:04 +01:00
parent bd3112fa7c
commit 8482c6c2e6
1 changed files with 1 additions and 0 deletions

View File

@ -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(),
}