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:
Kristin Laemmert 2019-06-03 14:00:46 -04:00
parent 703f024cbd
commit 06a3333316

View File

@ -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 {
// It's possible, though unlikely, to have a module call with a nil config
// https://github.com/hashicorp/terraform/issues/21543
// It is possible to have a module call with a nil config.
if c == nil {
return moduleCall{}
}