From dc12be1faff4b73a3fc9bd62296c40a351597a20 Mon Sep 17 00:00:00 2001 From: Roma Ryzhyi <110890299+ajax-ryzhyi-r@users.noreply.github.com> Date: Mon, 4 Sep 2023 13:09:30 +0300 Subject: [PATCH] fix: Fixed ordering issue in terraform_wrapper_module_for_each hook (#565) --- hooks/terraform_wrapper_module_for_each.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/terraform_wrapper_module_for_each.sh b/hooks/terraform_wrapper_module_for_each.sh index b4654c94a..886b7080a 100755 --- a/hooks/terraform_wrapper_module_for_each.sh +++ b/hooks/terraform_wrapper_module_for_each.sh @@ -321,7 +321,7 @@ EOF # Get names of module variables in all terraform files # shellcheck disable=SC2207 - module_vars=($(echo "$all_tf_content" | hcledit block list | { grep variable. | cut -d'.' -f 2 || true; })) + module_vars=($(echo "$all_tf_content" | hcledit block list | { grep variable. | cut -d'.' -f 2 | sort || true; })) # Get names of module outputs in all terraform files # shellcheck disable=SC2207