// GetProvider returns the providers.Interface and schema for a given provider.
GetProvider returns the providers.Interface and schema for a given provider.
// GetProvider returns the providers . Interface and schema for a given provider .
func GetProvider(ctx EvalContext, addr addrs.AbsProviderConfig) (providers.Interface, *ProviderSchema, error) {
	if addr.Provider.Type == "" {
		panic("EvalGetProvider used with uninitialized provider configuration address")
	}
	provider := ctx.Provider(addr)
	if provider == nil {
		return nil, &ProviderSchema{}, fmt.Errorf("provider %s not initialized", addr)
	}
	schema := ctx.ProviderSchema(addr)
	return provider, schema, nil
}
func GetProvider ( ctx EvalContext , addr addrs . AbsProviderConfig ) ( providers . Interface , * ProviderSchema , error ) { if addr . Provider . Type == " " { panic ( " " ) } provider := ctx . Provider ( addr ) if provider == nil { return nil , & ProviderSchema { } , fmt . Errorf ( " " , addr ) } schema := ctx . ProviderSchema ( addr ) return provider , schema , nil }
GetProvider returns the providers.Interface and schema for a given provider.
GetProvider returns the providers . Interface and schema for a given provider .
// Should never happen // Not all callers require a schema, so we will leave checking for a nil // schema to the callers.