Skip to content

Commit

Permalink
fix null params on built-in defs
Browse files Browse the repository at this point in the history
  • Loading branch information
gettek committed Mar 7, 2024
1 parent 13bef79 commit 280faeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/initiative/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ locals {
id = d.id
mode = try(d.mode, "")
reference = var.duplicate_members == false ? replace(title(replace(d.name, "/-|_|\\s/", " ")), "/\\s/", "") : "${idx}_${replace(title(replace(d.name, "/-|_|\\s/", " ")), "/\\s/", "")}"
parameters = coalesce(null, jsondecode(d.parameters), null)
parameters = try(jsondecode(d.parameters), {})
category = try(jsondecode(d.metadata).category, "")
version = try(jsondecode(d.metadata).version, "1.*.*")
non_compliance_message = try(jsondecode(d.metadata).non_compliance_message, d.description, d.display_name, "Flagged by Policy: ${d.name}")
Expand Down

0 comments on commit 280faeb

Please sign in to comment.