Commit 7710871
authored
The hook copies the source module's `versions.tf` into the generated wrapper
verbatim. When the source carries a `provider_meta` block (used by
terraform-aws-modules to tag the provider user-agent), the wrapper ends up
declaring it too, so every provider call from a wrappered module sends the
same user-agent fragment twice.
Filter `provider_meta` blocks out while copying. `required_version` and
`required_providers` are preserved.
---------
Signed-off-by: pen-pal <unameme@proton.me>
1 parent c838f02 commit 7710871
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
397 | | - | |
| 397 | + | |
398 | 398 | | |
399 | 399 | | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
400 | 405 | | |
401 | 406 | | |
402 | 407 | | |
| |||
0 commit comments