Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate: pass through correct name of schema provider #148

Merged
merged 1 commit into from Jun 13, 2022

Commits on Jun 13, 2022

  1. 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 hashicorp#139
    jacobbednarz committed Jun 13, 2022
    Copy the full SHA
    75cbfe9 View commit details
    Browse the repository at this point in the history