Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
morgante committed Jul 8, 2021
1 parent e051555 commit cd04a65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions modules/hub-gke/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}

Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion modules/hub-gke/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
}

0 comments on commit cd04a65

Please sign in to comment.