From cd04a654b10000cb00aa8fe8a51448c1111e79f4 Mon Sep 17 00:00:00 2001 From: Morgante Pell Date: Thu, 8 Jul 2021 17:11:54 -0400 Subject: [PATCH] fmt --- modules/hub-gke/main.tf | 6 +++--- modules/hub-gke/variables.tf | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/hub-gke/main.tf b/modules/hub-gke/main.tf index 0108f666e6..986249eaff 100644 --- a/modules/hub-gke/main.tf +++ b/modules/hub-gke/main.tf @@ -15,7 +15,7 @@ */ locals { - hub_project_id = var.hub_project_id == "" ? var.project_id : var.hub_project_id + hub_project_id = var.hub_project_id == "" ? var.project_id : var.hub_project_id gke_hub_membership_name = var.gke_hub_membership_name != "" ? var.gke_hub_membership_name : "${var.project_id}-${var.location}-${var.cluster_name}" } @@ -53,10 +53,10 @@ resource "google_project_service_identity" "sa_gkehub" { # Create the membership resource "google_gke_hub_membership" "primary" { - count = var.enable_gke_hub_registration ? 1 : 0 + count = var.enable_gke_hub_registration ? 1 : 0 provider = google-beta - project = local.hub_project_id + project = local.hub_project_id membership_id = local.gke_hub_membership_name endpoint { diff --git a/modules/hub-gke/variables.tf b/modules/hub-gke/variables.tf index 227a21278c..27815808ba 100644 --- a/modules/hub-gke/variables.tf +++ b/modules/hub-gke/variables.tf @@ -49,6 +49,6 @@ variable "gke_hub_membership_name" { variable "module_depends_on" { description = "List of modules or resources this module depends on." - type = list + type = list(any) default = [] }