-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generate: pass through correct name of schema provider
After updating to 0.9.0, I found that individual template overrides no longer worked using the `generate` command however, would work if using `tfplugindocs` directly. I started looking into why this was and it boiled down to being that the value from `--rendered-provider-name` was being incorrectly passed into `resourceSchema` causing the friendly name (such as `Cloudflare`) to be used instead of the correct schema name (here, `terraform-provider-cloudflare`) resulting in the schema never being found for the data-source or resource. This corrects the value we pass to the render website methods to always be the schema provider, not the friendly name. Closes #139
- Loading branch information
1 parent
cbd432b
commit 2570a93
Showing
2 changed files
with
15 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters