Skip to content

Commit fa811d2

Browse files
authored
fix: Fix the condition of the logical operators of master_user_name and master_user_password (#4)
1 parent 506d93e commit fa811d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ resource "aws_opensearch_domain" "this" {
4646

4747
content {
4848
master_user_arn = try(master_user_options.value.master_user_arn, null) == null ? try(master_user_options.value.master_user_arn, data.aws_iam_session_context.current[0].issuer_arn) : null
49-
master_user_name = try(master_user_options.value.master_user_name, null) == null ? try(master_user_options.value.master_user_name, null) : null
50-
master_user_password = try(master_user_options.value.master_user_password, null) == null ? try(master_user_options.value.master_user_password, null) : null
49+
master_user_name = try(master_user_options.value.master_user_arn, null) == null ? try(master_user_options.value.master_user_name, null) : null
50+
master_user_password = try(master_user_options.value.master_user_arn, null) == null ? try(master_user_options.value.master_user_password, null) : null
5151
}
5252
}
5353
}

0 commit comments

Comments
 (0)