allow for provider declaration with index to be parsed.#3
Conversation
Signed-off-by: Jason Lines <31143074+crash-bandi@users.noreply.github.com>
|
Is it worth opening a PR against the upstream project instead of, or in addition to, this fork? They do say "We would be happy to review PRs to fix bugs in existing functionality," which IMO this is. |
Since the upstream project owner is Hashicorp, and this suggested change is to add support for OpenTofu (a direct open source competitor to their Terraform product), I do not believe it is worth attempting to submit this change there as I am quite certain it will never get approved. |
|
@khos2ow @brittandeyoung @metmajer this issue and terraform-docs/terraform-docs#839 are preventing for_each from being resolved and documented in opentofu. |
I am aware of the statement that this repository does not accept external pull requests, but this addresses an issue with terraform-docs that cannot otherwise be resolved (as far as I can tell), so I am going to try just incase.
With the recent added support to
.tofufiles, it appears there is at least a limited desire to support OpenTofu. This update allows for a provider declaration on a resource or data source with an index to be specified, as was introduced with OpenTofu v1.9.0. This fixes issue 839 opened on terraform-docs, and is the only way to do so as far as I can tell.Please let me know if any additional activities are required on my part to make this acceptable.