remove fixed FIXME

pull/33482/head
James Bardin 3 years ago
parent 68d86e81fb
commit b9d8d99b04

@ -146,13 +146,6 @@ func NewContext(opts *ContextOpts) (*Context, tfdiags.Diagnostics) {
}
func (c *Context) Schemas(config *configs.Config, state *states.State) (*Schemas, tfdiags.Diagnostics) {
// FIXME: This method gets called multiple times on the same context with
// the same inputs by different parts of Terraform that all need the
// schemas, and it's typically quite expensive because it has to spin up
// plugins to gather their schemas, so it'd be good to have some caching
// here to remember plugin schemas we already loaded since the plugin
// selections can't change during the life of a *Context object.
var diags tfdiags.Diagnostics
ret, err := loadSchemas(config, state, c.plugins)

Loading…
Cancel
Save