use dynamic types when handling variables during plan and show static evaluation (#1826)

Signed-off-by: James Humphries <james@james-humphries.co.uk>
This commit is contained in:
James Humphries
2024-07-17 16:46:24 +01:00
committed by GitHub
parent b93acf96a9
commit cc91bf25f5
5 changed files with 129 additions and 97 deletions

View File

@@ -280,7 +280,7 @@ func (b *Local) localRunForPlanFile(op *backend.Operation, pf *planfile.Reader,
return variable.Default, nil
}
parsed, parsedErr := v.Decode(variable.Type)
parsed, parsedErr := v.Decode(cty.DynamicPseudoType)
if parsedErr != nil {
diags = diags.Append(&hcl.Diagnostic{
Severity: hcl.DiagError,