Skip to content

Commit

Permalink
Bugfix incorrect default type
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacastelnuovo committed Dec 24, 2023
1 parent 6b10f69 commit 9820b41
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ resource "cloudflare_zone_dnssec" "this" {

module "apple" {
source = "./modules/apple"
count = length(var.apple) > 0 ? 1 : 0
count = var.apple == null ? 0 : 1

zone_id = cloudflare_zone.this.id

Expand All @@ -51,7 +51,7 @@ module "apple" {

module "google" {
source = "./modules/google"
count = length(var.google) > 0 ? 1 : 0
count = var.google == null ? 0 : 1

zone_id = cloudflare_zone.this.id

Expand All @@ -64,7 +64,7 @@ module "google" {

module "microsoft" {
source = "./modules/microsoft"
count = length(var.microsoft) > 0 ? 1 : 0
count = var.microsoft == null ? 0 : 1

zone_id = cloudflare_zone.this.id

Expand All @@ -75,7 +75,7 @@ module "microsoft" {

module "postmark" {
source = "./modules/postmark"
count = length(var.postmark) > 0 ? 1 : 0
count = var.postmark == null ? 0 : 1

zone_id = cloudflare_zone.this.id

Expand Down
8 changes: 4 additions & 4 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ variable "apple" {
# }
#

default = {}
default = null
}

variable "google" {
Expand All @@ -73,7 +73,7 @@ variable "google" {
# }
#

default = {}
default = null
}


Expand All @@ -96,7 +96,7 @@ variable "microsoft" {
# }
#

default = {}
default = null
}

variable "postmark" {
Expand All @@ -122,5 +122,5 @@ variable "postmark" {
# }
#

default = {}
default = null
}

0 comments on commit 9820b41

Please sign in to comment.