evaluateLocalVariable: also pass the variable name
This commit is contained in:
parent
bd3112fa7c
commit
8482c6c2e6
|
@ -155,6 +155,7 @@ func (c *PackerConfig) evaluateLocalVariable(local *Local) hcl.Diagnostics {
|
||||||
return diags
|
return diags
|
||||||
}
|
}
|
||||||
c.LocalVariables[local.Name] = &Variable{
|
c.LocalVariables[local.Name] = &Variable{
|
||||||
|
Name: local.Name,
|
||||||
DefaultValue: value,
|
DefaultValue: value,
|
||||||
Type: value.Type(),
|
Type: value.Type(),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue