Skip to content

Commit

Permalink
add null check for environment
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 23, 2026
1 parent be485d8 commit b5e31de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base-label/base.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ locals {
}

resource "terraform_data" "base_environment" {
count = length(local.base.environment) > 0 ? 1 : 0
count = local.base.environment!=null && length(local.base.environment) > 0 ? 1 : 0
input = local.base.environment

lifecycle {
Expand Down

0 comments on commit b5e31de

Please sign in to comment.