Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion hooks/terraform_wrapper_module_for_each.sh
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,14 @@ EOF

echo "$CONTENT_VARIABLES_TF" > "${output_dir}/variables.tf"

# If the root module has a versions.tf, use that; otherwise, create it
# If the root module has a versions.tf, use that; otherwise, create it.
if [[ -f "${full_module_dir}/versions.tf" ]]; then
cp "${full_module_dir}/versions.tf" "${output_dir}/versions.tf"
# Don't propagate redundant `provider_meta` user-agent attrs (#954).
hcledit attribute rm "terraform.provider_meta.${module_repo_provider}.user_agent" \
-f "${output_dir}/versions.tf" -u
hcledit attribute rm "terraform.provider_meta.${module_repo_provider}.module_name" \
Comment thread
yermulnik marked this conversation as resolved.
Outdated
-f "${output_dir}/versions.tf" -u
else
echo "$CONTENT_VERSIONS_TF" > "${output_dir}/versions.tf"
fi
Expand Down
Loading