Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Commit

Permalink
Fix ternary ifs (#8)
Browse files Browse the repository at this point in the history
Signed-off-by: Borja Clemente <[email protected]>
  • Loading branch information
clebs authored Jan 30, 2020
1 parent 1b92241 commit 2dee4c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions azurerm_kubernetes_cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ terraform {

locals {
# if variables not defined, then use var.cluster_name
resource_group = var.resource_group != "" var.resource_group : var.cluster_name
log_analytics_workspace_name = var.log_analytics_workspace_name != "" var.log_analytics_workspace_name : var.cluster_name
dns_prefix = var.dns_prefix != "" var.dns_prefix : var.cluster_name
resource_group = var.resource_group != "" ? var.resource_group : var.cluster_name
log_analytics_workspace_name = var.log_analytics_workspace_name != "" ? var.log_analytics_workspace_name : var.cluster_name
dns_prefix = var.dns_prefix != "" ? var.dns_prefix : var.cluster_name
}

0 comments on commit 2dee4c3

Please sign in to comment.