mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 01:41:48 -06:00
terraform: walkContext
This commit is contained in:
parent
bc67e7c443
commit
c164839ed1
1093
terraform/context.go
1093
terraform/context.go
File diff suppressed because it is too large
Load Diff
@ -160,7 +160,7 @@ func (c *ResourceConfig) get(
|
||||
return current, true
|
||||
}
|
||||
|
||||
func (c *ResourceConfig) interpolate(ctx *Context) error {
|
||||
func (c *ResourceConfig) interpolate(ctx *walkContext) error {
|
||||
if c == nil {
|
||||
return nil
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ func TestResourceConfigGet(t *testing.T) {
|
||||
rc := NewResourceConfig(rawC)
|
||||
if tc.Vars != nil {
|
||||
ctx := NewContext(&ContextOpts{Variables: tc.Vars})
|
||||
if err := rc.interpolate(ctx); err != nil {
|
||||
if err := rc.interpolate(ctx.walkContext(rootModulePath)); err != nil {
|
||||
t.Fatalf("err: %s", err)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user