Skip to content

Commit

Permalink
change conditional expression
Browse files Browse the repository at this point in the history
  • Loading branch information
githubjianli authored Jan 5, 2024
1 parent 631e8aa commit 982dbc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common.tf
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ data "aws_secretsmanager_secret_version" "datadog_key" {
}

locals {
datadog_keys = length(var.var.datadog_key_secret_name) > 0 ? {} : jsondecode(data.aws_secretsmanager_secret_version.datadog_key[0].secret_string)
datadog_keys = length(var.var.datadog_key_secret_name) > 0 ? [] : jsondecode(data.aws_secretsmanager_secret_version.datadog_key[0].secret_string)
}

provider "datadog" {
Expand Down

0 comments on commit 982dbc2

Please sign in to comment.