note: this is an unusual edgecase in the category of "probably should not happen"
If https://github.com/hashicorp/terraform/issues/21543 is fixed, we can remove this check.
This commit is contained in:
parent
703f024cbd
commit
06a3333316
|
@ -238,8 +238,7 @@ func marshalModuleCalls(c *configs.Config, schemas *terraform.Schemas) map[strin
|
||||||
}
|
}
|
||||||
|
|
||||||
func marshalModuleCall(c *configs.Config, mc *configs.ModuleCall, schemas *terraform.Schemas) moduleCall {
|
func marshalModuleCall(c *configs.Config, mc *configs.ModuleCall, schemas *terraform.Schemas) moduleCall {
|
||||||
// It's possible, though unlikely, to have a module call with a nil config
|
// It is possible to have a module call with a nil config.
|
||||||
// https://github.com/hashicorp/terraform/issues/21543
|
|
||||||
if c == nil {
|
if c == nil {
|
||||||
return moduleCall{}
|
return moduleCall{}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue