Skip to content

Commit

Permalink
- 0.2.1 -- 2025-11-04
Browse files Browse the repository at this point in the history
  - tags
    - fix case for roles with no tags.yml
  • Loading branch information
badra001 committed Nov 4, 2025
1 parent a42063f commit 941d13f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@
- 0.2.0 -- 2025-07-29
- add base-label
- add prefixes

- 0.2.1 -- 2025-11-04
- tags
- fix case for roles with no tags.yml
2 changes: 1 addition & 1 deletion common/version.tf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
locals {
_module_version = "0.2.0"
_module_version = "0.2.1"
_module_name = "boc-nts"
}
2 changes: 1 addition & 1 deletion tags/tags.finops.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ locals {
project_role = local._finops.role != null ? replace(replace(local._finops.role, "+", format("%v_", local._finops.name)), "/[^a-z0-9_]/", "") : null
}
finops_tags = { for k, v in local._finops_tags : k => v if v != null && k != "prefix" }
finops_roles = [for r in lookup(local.tags_in.finops, "roles", []) : lower(r)]
finops_roles = [for r in try(local.tags_in.finops["roles"], try(local.var.finops["roles"],[])) : lower(r)]
}

resource "terraform_data" "finops" {
Expand Down

0 comments on commit 941d13f

Please sign in to comment.