core: LoadSchemas must detect provisioners in non-root modules
This commit is contained in:
parent
d961b1de1b
commit
d3e4565681
|
@ -260,6 +260,12 @@ func loadProvisionerSchemas(schemas map[string]*configschema.Block, config *conf
|
||||||
ensure(pc.Type)
|
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
|
return diags
|
||||||
|
|
Loading…
Reference in New Issue