Skip to content

Commit

Permalink
fix: Corrects errors when plan contains no pricing changes (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkubilus authored May 5, 2022
1 parent 1942f6c commit 8a062b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/pricing/state_and_plan_content_from_json.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ locals {

instances_map = local.input_type == "plan" ? local.normalized_plan_instances : local.normalized_state_instances

instances_stripped_keys = local.input_type == "empty" ? [] : concat([
instances_stripped_keys = local.input_type == "empty" || length(local.instances_map) == 0 ? [] : concat([
for k, v in local.instances_map :
setproduct([k], keys(v))
]...)
Expand Down

0 comments on commit 8a062b9

Please sign in to comment.