Skip to content

Commit

Permalink
fix condition use to verify custom_domain settings (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelamattes authored May 9, 2022
1 parent e2ab84c commit fb40101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resource "azurerm_storage_account" "storage_account" {
infrastructure_encryption_enabled = local.storage_account[each.key].infrastructure_encryption_enabled

dynamic "custom_domain" {
for_each = local.storage_account[each.key].custom_domain.name == "" ? [1] : []
for_each = local.storage_account[each.key].custom_domain.name != "" ? [1] : []
content {
name = local.storage_account[each.key].custom_domain.name
use_subdomain = local.storage_account[each.key].custom_domain.use_subdomain
Expand Down

0 comments on commit fb40101

Please sign in to comment.