Skip to content

Commit 6985a6c

Browse files
committed
missing Type in marshalModuleCall Attribute
The type isn't needed here for what marshalModuleCall is doing (converting hcl config into the generic plan json config output), but the new check in configschema prevents the invalid Attribute value.
1 parent 663cc1d commit 6985a6c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/command/jsonconfig/config.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ func marshalModuleCall(c *configs.Config, mc *configs.ModuleCall, schemas *terra
414414
schema.Attributes = make(map[string]*configschema.Attribute)
415415
for _, variable := range c.Module.Variables {
416416
schema.Attributes[variable.Name] = &configschema.Attribute{
417+
Type: cty.DynamicPseudoType,
417418
Required: variable.Default == cty.NilVal,
418419
}
419420
}

0 commit comments

Comments
 (0)