From d3e456568137760e413245eb74c15d6726890ec4 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Fri, 1 Jun 2018 12:50:44 -0700 Subject: [PATCH] core: LoadSchemas must detect provisioners in non-root modules --- terraform/schemas.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/terraform/schemas.go b/terraform/schemas.go index 8b8f3f338..6f175948b 100644 --- a/terraform/schemas.go +++ b/terraform/schemas.go @@ -260,6 +260,12 @@ func loadProvisionerSchemas(schemas map[string]*configschema.Block, config *conf ensure(pc.Type) } } + + // Must also visit our child modules, recursively. + for _, cc := range config.Children { + childDiags := loadProvisionerSchemas(schemas, cc, components) + diags = diags.Append(childDiags) + } } return diags