Skip to content

Commit dc12be1

Browse files
fix: Fixed ordering issue in terraform_wrapper_module_for_each hook (#565)
1 parent cdecf28 commit dc12be1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hooks/terraform_wrapper_module_for_each.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ EOF
321321

322322
# Get names of module variables in all terraform files
323323
# shellcheck disable=SC2207
324-
module_vars=($(echo "$all_tf_content" | hcledit block list | { grep variable. | cut -d'.' -f 2 || true; }))
324+
module_vars=($(echo "$all_tf_content" | hcledit block list | { grep variable. | cut -d'.' -f 2 | sort || true; }))
325325

326326
# Get names of module outputs in all terraform files
327327
# shellcheck disable=SC2207

0 commit comments

Comments
 (0)