Skip to content

Commit 1669236

Browse files
authored
fix: Add empty map to execute_command_configuration to avoid plugin crash from interface conversion (#62)
1 parent 1fdae65 commit 1669236

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ repos:
2323
- '--args=--only=terraform_standard_module_structure'
2424
- '--args=--only=terraform_workspace_remote'
2525
- repo: https://github.com/pre-commit/pre-commit-hooks
26-
rev: v4.2.0
26+
rev: v4.3.0
2727
hooks:
2828
- id: check-merge-conflict
2929
- id: end-of-file-fixer

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ resource "aws_ecs_cluster" "this" {
1212

1313
content {
1414
dynamic "execute_command_configuration" {
15-
for_each = try([configuration.value.execute_command_configuration], [])
15+
for_each = try([configuration.value.execute_command_configuration], [{}])
1616

1717
content {
1818
kms_key_id = try(execute_command_configuration.value.kms_key_id, null)

0 commit comments

Comments
 (0)