Skip to content

Commit

Permalink
Use lookup with default instead of coalesce
Browse files Browse the repository at this point in the history
  • Loading branch information
jufemaiz committed Aug 2, 2019
1 parent cac085d commit 3098dd4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion groups/tagging.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
locals {
tf_module = "groups"
tf_module_repo = "github.com/aceteknologi/terraform-iam"
tf_root_path = coalesce(var.tags["tf_path"], "unknown")
tf_root_path = lookup(var.tags, "tf_path", "unknown")
}

locals {
Expand Down
2 changes: 1 addition & 1 deletion roles/tagging.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
locals {
tf_module = "roles"
tf_module_repo = "github.com/aceteknologi/terraform-iam"
tf_root_path = coalesce(var.tags["tf_path"], "unknown")
tf_root_path = lookup(var.tags, "tf_path", "unknown")
}

locals {
Expand Down
2 changes: 1 addition & 1 deletion user/tagging.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
locals {
tf_module = "user"
tf_module_repo = "github.com/aceteknologi/terraform-iam"
tf_root_path = coalesce(var.tags["tf_path"], "unknown")
tf_root_path = lookup(var.tags, "tf_path", "unknown")
}

locals {
Expand Down

0 comments on commit 3098dd4

Please sign in to comment.