Skip to content

Commit

Permalink
Merge pull request #11 from krowlandson/main
Browse files Browse the repository at this point in the history
Fix for Policy Set Definitions bug
  • Loading branch information
Kevin Rowlandson authored Oct 12, 2020
2 parents d89084d + b796b6a commit 90c97f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources.policy_set_definitions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ resource "azurerm_policy_set_definition" "enterprise_scale" {
]
content {
policy_definition_id = policy_definition_reference.value["policyDefinitionId"]
parameter_values = try(length(policy_definition_reference.value["parameters"]) > 0, false) ? jsonencode(policy_definition_reference.value["parameters"]) : jsonencode(local.empty_map)
parameter_values = try(length(policy_definition_reference.value["parameters"]) > 0, false) ? jsonencode(policy_definition_reference.value["parameters"]) : null
reference_id = try(length(policy_definition_reference.value["policyDefinitionReferenceId"]) > 0, false) ? policy_definition_reference.value["policyDefinitionReferenceId"] : policy_definition_reference.value["policyDefinitionId"]
}
}
Expand Down

0 comments on commit 90c97f8

Please sign in to comment.