diff --git a/internal/provider/template.go b/internal/provider/template.go index 639364ac..0aa777a6 100644 --- a/internal/provider/template.go +++ b/internal/provider/template.go @@ -149,7 +149,7 @@ func (t providerTemplate) Render(providerName, renderedProviderName, exampleFile }{ Description: schema.Block.Description, - HasExample: exampleFile != "", + HasExample: exampleFile != "" && fileExists(exampleFile), ExampleFile: exampleFile, ProviderName: providerName,