Skip to content

Commit

Permalink
Also fixing HasExample for Provider templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan De Marino authored and detro committed Jun 29, 2022
1 parent f34937b commit 88d3e4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/template.go
Expand Up @@ -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,
Expand Down

0 comments on commit 88d3e4a

Please sign in to comment.