Skip to content

Commit 9ef469a

Browse files
committed
add comment of associate cloud with hcledit
Signed-off-by: penpal <unameme@proton.me>
1 parent 97d76b9 commit 9ef469a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

hooks/terraform_wrapper_module_for_each.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -398,10 +398,10 @@ EOF
398398
if [[ -f "${full_module_dir}/versions.tf" ]]; then
399399
cp "${full_module_dir}/versions.tf" "${output_dir}/versions.tf"
400400
# Don't propagate redundant `provider_meta` user-agent attrs (#954).
401-
hcledit attribute rm "terraform.provider_meta.${module_repo_provider}.user_agent" \
402-
-f "${output_dir}/versions.tf" -u
403-
hcledit attribute rm "terraform.provider_meta.${module_repo_provider}.module_name" \
404-
-f "${output_dir}/versions.tf" -u
401+
# sepcific to aws cloud only
402+
hcledit attribute rm "terraform.provider_meta.${module_repo_provider}.user_agent" -f "${output_dir}/versions.tf" -u
403+
# specific to gcp cloud only
404+
hcledit attribute rm "terraform.provider_meta.${module_repo_provider}.module_name" -f "${output_dir}/versions.tf" -u
405405
else
406406
echo "$CONTENT_VERSIONS_TF" > "${output_dir}/versions.tf"
407407
fi

0 commit comments

Comments
 (0)