mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
helper/diff: fix failing test
This commit is contained in:
parent
dbe83af829
commit
e00ee1e5ee
@ -8,6 +8,8 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/hashicorp/terraform/config"
|
||||
"github.com/hashicorp/terraform/config/lang"
|
||||
"github.com/hashicorp/terraform/config/lang/ast"
|
||||
"github.com/hashicorp/terraform/terraform"
|
||||
)
|
||||
|
||||
@ -21,7 +23,12 @@ func testConfig(
|
||||
}
|
||||
|
||||
if len(vs) > 0 {
|
||||
if err := rc.Interpolate(vs); err != nil {
|
||||
vars := make(map[string]lang.Variable)
|
||||
for k, v := range vs {
|
||||
vars[k] = lang.Variable{Value: v, Type: ast.TypeString}
|
||||
}
|
||||
|
||||
if err := rc.Interpolate(vars); err != nil {
|
||||
t.Fatalf("err: %s", err)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user